Skip to content

Commit

Permalink
Merge pull request #1771 from sodatea/do-not-transpile-core-js
Browse files Browse the repository at this point in the history
fix($core): do not transpile core packages' dependencies

fix #1753
fix #4539
fix #1729
  • Loading branch information
fgiraud authored Sep 5, 2019
2 parents f889759 + b69b107 commit dad9c8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ module.exports = function createBaseConfig (context, isServer) {
return false
}
// transpile all core files
if (/(@vuepress|vuepress-)\/.*\.js$/.test(filePath)) {
if (/(@vuepress|vuepress-)\/^((?!node_modules).)*\.js$/.test(filePath)) {
return false
}
// Don't transpile node_modules
Expand Down

0 comments on commit dad9c8c

Please sign in to comment.