Skip to content

Commit 5c2a839

Browse files
committed
fix: @babel/runtime helpers use APIs not found in older environments
1 parent 513f559 commit 5c2a839

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ module.exports = function createBaseConfig (context, isServer) {
152152
if (/(@vuepress[\/\\][^\/\\]*|vuepress-[^\/\\]*)[\/\\](?!node_modules).*\.js$/.test(filePath)) {
153153
return false
154154
}
155+
156+
// transpile @babel/runtime until fix for babel/babel#7597 is released
157+
if (filePath.includes(path.join('@babel', 'runtime'))) {
158+
return false
159+
}
160+
155161
// Don't transpile node_modules
156162
return /node_modules/.test(filePath)
157163
}).end()

0 commit comments

Comments
 (0)