Skip to content

Commit b91a395

Browse files
committed
fix: add vueMajor import
1 parent 2142e1f commit b91a395

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/@vue/cli-service/lib/commands/build/resolveWcConfig.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ module.exports = (api, { target, entry, name, 'inline-vue': inlineVue }) => {
1212
process.exit(1)
1313
}
1414

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

0 commit comments

Comments
 (0)