Skip to content

Commit 6460b0c

Browse files
massimosianiulivz
authored andcommitted
fix($core): transpile all scripts under core (close: #1623) (#1685)
1 parent d87124c commit 6460b0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@vuepress/core/lib/node/webpack/createBaseConfig.js

+4
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ module.exports = function createBaseConfig (context, isServer) {
144144
if (/\.vue\.js$/.test(filePath)) {
145145
return false
146146
}
147+
// transpile all core files
148+
if (/(@vuepress|vuepress-)\/.*\.js$/.test(filePath)) {
149+
return false
150+
}
147151
// Don't transpile node_modules
148152
return /node_modules/.test(filePath)
149153
}).end()

0 commit comments

Comments
 (0)