Skip to content

Commit

Permalink
fix($core): transpile all scripts under core (close: #1623) (#1685)
Browse files Browse the repository at this point in the history
  • Loading branch information
massimosiani authored and ulivz committed Jul 29, 2019
1 parent d87124c commit 6460b0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@vuepress/core/lib/node/webpack/createBaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ module.exports = function createBaseConfig (context, isServer) {
if (/\.vue\.js$/.test(filePath)) {
return false
}
// transpile all core files
if (/(@vuepress|vuepress-)\/.*\.js$/.test(filePath)) {
return false
}
// Don't transpile node_modules
return /node_modules/.test(filePath)
}).end()
Expand Down

0 comments on commit 6460b0c

Please sign in to comment.