Skip to content

Commit

Permalink
fix(cli-service): fix polyfill injection when overriding entry with…
Browse files Browse the repository at this point in the history
… the CLI option

Fixes #5508
  • Loading branch information
dtcz committed Jun 2, 2020
1 parent 1d0dede commit dcfb0bd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ module.exports = (api, args, options) => {

// respect inline entry
if (args.entry && !options.pages) {
rawConfig.entry = { app: api.resolve(args.entry) }
const entry = api.resolve(args.entry)
rawConfig.entry = { app: entry }
process.env.VUE_CLI_ENTRY_FILES = JSON.stringify([entry])
}

return rawConfig
Expand Down

0 comments on commit dcfb0bd

Please sign in to comment.