diff --git a/build/gulpfile.extensions.js b/build/gulpfile.extensions.js index 12e34f60aff..6f7a9e678b4 100644 --- a/build/gulpfile.extensions.js +++ b/build/gulpfile.extensions.js @@ -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.`); } diff --git a/extensions/html-language-features/server/extension-browser.webpack.config.js b/extensions/html-language-features/server/extension-browser.webpack.config.js index e91bb6a37bc..ae024e8d7dd 100644 --- a/extensions/html-language-features/server/extension-browser.webpack.config.js +++ b/extensions/html-language-features/server/extension-browser.webpack.config.js @@ -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: [