Skip to content

Commit

Permalink
fix: @babel/runtime helpers use APIs not found in older environments
Browse files Browse the repository at this point in the history
  • Loading branch information
psalaets committed Apr 25, 2020
1 parent 513f559 commit 5c2a839
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/@vuepress/core/lib/node/webpack/createBaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5c2a839

Please sign in to comment.