未验证 提交 dad9c8ce 编写于 作者: F fgiraud 提交者: GitHub

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
...@@ -145,7 +145,7 @@ module.exports = function createBaseConfig (context, isServer) { ...@@ -145,7 +145,7 @@ module.exports = function createBaseConfig (context, isServer) {
return false return false
} }
// transpile all core files // transpile all core files
if (/(@vuepress|vuepress-)\/.*\.js$/.test(filePath)) { if (/(@vuepress|vuepress-)\/^((?!node_modules).)*\.js$/.test(filePath)) {
return false return false
} }
// Don't transpile node_modules // Don't transpile node_modules
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册