Skip to content

Commit dad9c8c

Browse files
author
fgiraud
authored
Merge pull request #1771 from sodatea/do-not-transpile-core-js
fix($core): do not transpile core packages' dependencies fix #1753 fix #4539 fix #1729
2 parents f889759 + b69b107 commit dad9c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/@vuepress/core/lib/node/webpack/createBaseConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ module.exports = function createBaseConfig (context, isServer) {
145145
return false
146146
}
147147
// transpile all core files
148-
if (/(@vuepress|vuepress-)\/.*\.js$/.test(filePath)) {
148+
if (/(@vuepress|vuepress-)\/^((?!node_modules).)*\.js$/.test(filePath)) {
149149
return false
150150
}
151151
// Don't transpile node_modules

0 commit comments

Comments
 (0)