Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bedf5ba

Browse filesBrowse files
authored
chore: show error message that the wc target with Vue 3 isn't supported yet (#5906)
1 parent 8578567 commit bedf5ba
Copy full SHA for bedf5ba

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed

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

Copy file name to clipboardExpand all lines: packages/@vue/cli-service/lib/commands/build/resolveWcConfig.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ module.exports = (api, { target, entry, name, 'inline-vue': inlineVue }) => {
55
// Disable CSS extraction and turn on CSS shadow mode for vue-style-loader
66
process.env.VUE_CLI_CSS_SHADOW_MODE = true
77

8-
const { log, error } = require('@vue/cli-shared-utils')
8+
const { log, error, loadModule, semver } = require('@vue/cli-shared-utils')
99
const abort = msg => {
1010
log()
1111
error(msg)
1212
process.exit(1)
1313
}
1414

15+
const vue = loadModule('vue', api.resolve('.'))
16+
if (vue && semver.satisfies(vue.version, '^3.0.0-0')) {
17+
abort(`Vue 3 support of the web component target is still under development.`)
18+
}
19+
1520
const isAsync = /async/.test(target)
1621

1722
// generate dynamic entry based on glob files

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.