mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
tweak SWC options to allow module interop
This commit is contained in:
@@ -305,7 +305,7 @@ class SwcTranspiler {
|
||||
},
|
||||
module: {
|
||||
type: 'amd',
|
||||
noInterop: true
|
||||
noInterop: false
|
||||
},
|
||||
minify: false,
|
||||
};
|
||||
@@ -313,7 +313,7 @@ class SwcTranspiler {
|
||||
...this._swcrcAmd,
|
||||
module: {
|
||||
type: 'commonjs',
|
||||
importInterop: 'none'
|
||||
importInterop: 'swc'
|
||||
}
|
||||
};
|
||||
static _swcrcEsm = {
|
||||
|
||||
@@ -388,7 +388,7 @@ export class SwcTranspiler implements ITranspiler {
|
||||
},
|
||||
module: {
|
||||
type: 'amd',
|
||||
noInterop: true
|
||||
noInterop: false
|
||||
},
|
||||
minify: false,
|
||||
};
|
||||
@@ -397,7 +397,7 @@ export class SwcTranspiler implements ITranspiler {
|
||||
...this._swcrcAmd,
|
||||
module: {
|
||||
type: 'commonjs',
|
||||
importInterop: 'none'
|
||||
importInterop: 'swc'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user