Skip to content

Commit 18e45ac

Browse files
committed
don't use --copy-files options has it seems to break BOM
1 parent 93e346a commit 18e45ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/lib/swc/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ function createSwcClientStream() {
2121
}
2222
exec() {
2323
try {
24-
const out1 = (0, child_process_1.execSync)(`npx swc --config-file ${pathConfigAmd} ${srcDir}/ --copy-files --out-dir ${outDir}`, { encoding: 'utf-8' });
24+
const out1 = (0, child_process_1.execSync)(`npx swc --config-file ${pathConfigAmd} ${srcDir}/ --out-dir ${outDir}`, { encoding: 'utf-8' });
2525
console.log(out1);
26-
const out2 = (0, child_process_1.execSync)(`npx swc --config-file ${pathConfigNoModule} ${srcDir}/vs/base/worker/workerMain.ts --copy-files --out-dir ${outDir}`, { encoding: 'utf-8' });
26+
const out2 = (0, child_process_1.execSync)(`npx swc --config-file ${pathConfigNoModule} ${srcDir}/vs/base/worker/workerMain.ts --out-dir ${outDir}`, { encoding: 'utf-8' });
2727
console.log(out2);
2828
return true;
2929
}

build/lib/swc/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export function createSwcClientStream() {
2626

2727
exec() {
2828
try {
29-
const out1 = execSync(`npx swc --config-file ${pathConfigAmd} ${srcDir}/ --copy-files --out-dir ${outDir}`, { encoding: 'utf-8' });
29+
const out1 = execSync(`npx swc --config-file ${pathConfigAmd} ${srcDir}/ --out-dir ${outDir}`, { encoding: 'utf-8' });
3030
console.log(out1);
3131

32-
const out2 = execSync(`npx swc --config-file ${pathConfigNoModule} ${srcDir}/vs/base/worker/workerMain.ts --copy-files --out-dir ${outDir}`, { encoding: 'utf-8' });
32+
const out2 = execSync(`npx swc --config-file ${pathConfigNoModule} ${srcDir}/vs/base/worker/workerMain.ts --out-dir ${outDir}`, { encoding: 'utf-8' });
3333
console.log(out2);
3434
return true;
3535
} catch (error) {

0 commit comments

Comments
 (0)