From 71875f0968b78c57d957e8d6cccbab4c5f32969f Mon Sep 17 00:00:00 2001 From: Paul Salaets Date: Fri, 17 Apr 2020 22:37:54 -0400 Subject: [PATCH] fix($core): specify entry files so the force-included polyfills will be included in the build output (fix #1168) --- .../@vuepress/core/lib/node/webpack/createBaseConfig.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js b/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js index bf7130b2db..1ad10f35f2 100644 --- a/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js +++ b/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js @@ -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') + ] + }] ] }) }