1
0
Эх сурвалжийг харах

fix: support Windows path separators

tophf 2 жил өмнө
parent
commit
3fcf2025b1

+ 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;