tweak SWC options to allow module interop

This commit is contained in:
Johannes
2024-06-03 18:40:56 +02:00
parent 5012cb8fb8
commit b9b51f0fb0
2 changed files with 4 additions and 4 deletions

View File

@@ -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'
}
};