diff --git a/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js b/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js index a531216fb1..a5a20172f4 100644 --- a/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js +++ b/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js @@ -152,6 +152,12 @@ module.exports = function createBaseConfig (context, isServer) { if (/(@vuepress[\/\\][^\/\\]*|vuepress-[^\/\\]*)[\/\\](?!node_modules).*\.js$/.test(filePath)) { return false } + + // transpile @babel/runtime until fix for babel/babel#7597 is released + if (filePath.includes(path.join('@babel', 'runtime'))) { + return false + } + // Don't transpile node_modules return /node_modules/.test(filePath) }).end()