Skip to content

Commit

Permalink
chore: show error message that the wc target with Vue 3 isn't suppo…
Browse files Browse the repository at this point in the history
…rted yet (#5906)
  • Loading branch information
sodatea committed Sep 29, 2020
1 parent 8578567 commit bedf5ba
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -5,13 +5,18 @@ module.exports = (api, { target, entry, name, 'inline-vue': inlineVue }) => {
// Disable CSS extraction and turn on CSS shadow mode for vue-style-loader
process.env.VUE_CLI_CSS_SHADOW_MODE = true

const { log, error } = require('@vue/cli-shared-utils')
const { log, error, loadModule, semver } = require('@vue/cli-shared-utils')
const abort = msg => {
log()
error(msg)
process.exit(1)
}

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

const isAsync = /async/.test(target)

// generate dynamic entry based on glob files
Expand Down

1 comment on commit bedf5ba

@y-sanchez
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello@sodatea, Do you know when the web component support will be possible to Vue 3 ?
Thks

Please sign in to comment.