We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b43438 commit 8037647Copy full SHA for 8037647
packages/@vue/cli-service/lib/commands/build/index.js
@@ -61,6 +61,14 @@ module.exports = (api, options) => {
61
delete process.env.VUE_CLI_MODERN_MODE
62
delete process.env.VUE_CLI_MODERN_BUILD
63
} else {
64
+ if (args.modern) {
65
+ const { warn } = require('@vue/cli-shared-utils')
66
+ warn(
67
+ `Modern mode only works with default target (app). ` +
68
+ `For libraries or web components, use the browserslist ` +
69
+ `config to specify target browsers.`
70
+ )
71
+ }
72
await build(args, api, options)
73
}
74
delete process.env.VUE_CLI_BUILD_TARGET
0 commit comments