Skip to content

Commit a003f72

Browse files
committed
chore: tweaks
1 parent 6a38ed0 commit a003f72

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
@@ -149,7 +149,7 @@ module.exports = function createBaseConfig (context, isServer) {
149149
// i.e.
150150
// @vuepress/*
151151
// vuepress-*
152-
if (/(@vuepress\/[^\/]*|vuepress-[^\/]*)\/(?!node_modules).*\.js$/.test(filePath)) {
152+
if (/(@vuepress[\/\\][^\/\\]*|vuepress-[^\/\\]*)[\/\\](?!node_modules).*\.js$/.test(filePath)) {
153153
return false
154154
}
155155
// Don't transpile node_modules

0 commit comments

Comments
 (0)