Skip to content

Commit dcfb0bd

Browse files
authored
fix(cli-service): fix polyfill injection when overriding entry with the CLI option
Fixes #5508
1 parent 1d0dede commit dcfb0bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ module.exports = (api, args, options) => {
4040

4141
// respect inline entry
4242
if (args.entry && !options.pages) {
43-
rawConfig.entry = { app: api.resolve(args.entry) }
43+
const entry = api.resolve(args.entry)
44+
rawConfig.entry = { app: entry }
45+
process.env.VUE_CLI_ENTRY_FILES = JSON.stringify([entry])
4446
}
4547

4648
return rawConfig

0 commit comments

Comments
 (0)