Skip to content

Commit

Permalink
fix: add vueMajor import
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Feb 7, 2022
1 parent 2142e1f commit b91a395
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ module.exports = (api, { target, entry, name, 'inline-vue': inlineVue }) => {
process.exit(1)
}

const vue = loadModule('vue', api.resolve('.'))
if (vue && semver.satisfies(vue.version, '^3.0.0-0')) {
const cwd = api.getCwd()
const vueMajor = require('../../util/getVueMajor')(cwd)
if (vueMajor === 3) {
abort(`Vue 3 support of the web component target is still under development.`)
}

Expand Down

0 comments on commit b91a395

Please sign in to comment.