fix windows path issues in yarn watch-web
parent
bf31134f0d
commit
4f1997dcc7
|
@ -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.`);
|
||||
}
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue