Skip to content

Commit 71875f0

Browse files
committed
fix($core): specify entry files so the force-included polyfills will be
included in the build output (fix #1168)
1 parent f54b389 commit 71875f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/@vuepress/core/lib/node/webpack/createBaseConfig.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,12 @@ module.exports = function createBaseConfig (context, isServer) {
171171
// ref: http://babeljs.io/docs/en/config-files
172172
configFile: false,
173173
presets: [
174-
require.resolve('@vue/babel-preset-app')
174+
[require.resolve('@vue/babel-preset-app'), {
175+
entryFiles: [
176+
path.resolve(__dirname, '../../client/clientEntry.js'),
177+
path.resolve(__dirname, '../../client/serverEntry.js')
178+
]
179+
}]
175180
]
176181
})
177182
}

0 commit comments

Comments
 (0)