Skip to content

Commit b69b107

Browse files
committedAug 12, 2019
fix($core): do not transpile core packages' dependencies
1 parent 9939ea6 commit b69b107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎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)
Please sign in to comment.