fix windows path issues in yarn watch-web

This commit is contained in:
Martin Aeschlimann 2020-06-26 11:15:27 +02:00
parent bf31134f0d
commit 4f1997dcc7
2 changed files with 3 additions and 3 deletions

View file

@ -205,7 +205,7 @@ async function buildWebExtensions(isWatch) {
for (const stats of fullStats.children) {
const outputPath = stats.outputPath;
if (outputPath) {
const relativePath = path.relative(extensionsPath, outputPath);
const relativePath = path.relative(extensionsPath, outputPath).replace(/\\/g, '/');
const match = relativePath.match(/[^\/]+(\/server|\/client)?/);
fancyLog(`Finished ${ansiColors.green('packaging web extension')} ${ansiColors.cyan(match[0])} with ${stats.errors.length} errors.`);
}

View file

@ -22,11 +22,11 @@ const serverConfig = withBrowserDefaults({
},
optimization: {
splitChunks: {
chunks: "async"
chunks: 'async'
}
}
});
serverConfig.module.noParse = /typescript\/lib\/typescript\.js/;
serverConfig.module.noParse = /typescript[\/\\]lib[\/\\]typescript\.js/;
serverConfig.module.rules.push({
test: /javascriptLibs.ts$/,
use: [