esm - more diff reduction (#225666)

This commit is contained in:
Benjamin Pasero
2024-08-15 10:34:03 +02:00
committed by GitHub
parent 27f650ea23
commit bea40cdd3d
16 changed files with 141 additions and 130 deletions

View File

@@ -74,6 +74,10 @@ async function main() {
openSystemBrowser = true;
}
if (fs.existsSync(path.join(APP_ROOT, 'src2')) || fs.existsSync(path.join(APP_ROOT, 'out-build', 'esm'))) {
serverArgs.push('--esm');
}
serverArgs.push('--sourcesPath', APP_ROOT);
serverArgs.push(...process.argv.slice(2).filter(v => !v.startsWith('--playground') && v !== '--no-playground'));