Skip to content

Commit

Permalink
fix($core): specify entry files so the force-included polyfills will be
Browse files Browse the repository at this point in the history
included in the build output (fix vuejs#1168)
  • Loading branch information
psalaets committed Apr 18, 2020
1 parent f54b389 commit 71875f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/@vuepress/core/lib/node/webpack/createBaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,12 @@ module.exports = function createBaseConfig (context, isServer) {
// ref: http://babeljs.io/docs/en/config-files
configFile: false,
presets: [
require.resolve('@vue/babel-preset-app')
[require.resolve('@vue/babel-preset-app'), {
entryFiles: [
path.resolve(__dirname, '../../client/clientEntry.js'),
path.resolve(__dirname, '../../client/serverEntry.js')
]
}]
]
})
}
Expand Down

0 comments on commit 71875f0

Please sign in to comment.