mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
tweak SWC options to allow module interop
This commit is contained in:
parent
5012cb8fb8
commit
b9b51f0fb0
|
@ -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'
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue