浏览代码

fix: support Windows path separators

tophf 2 年之前
父节点
当前提交
3fcf2025b1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/webpack.conf.js

+ 1 - 1
scripts/webpack.conf.js

@@ -116,7 +116,7 @@ const modify = (page, entry, init) => modifyWebpackConfig(
     ]);
     config.module.rules.find(rule => {
       if (typeof rule.test?.test === 'function' && rule.test.test('file.js')) {
-        rule.exclude = file => /node_modules/.test(file) && !/vueleton|@vue\/shared/.test(file);
+        rule.exclude = file => /node_modules/.test(file) && !/vueleton|@vue[/\\]shared/.test(file);
       }
     });
     if (!entry) init = page;