mirror of https://github.com/alibaba/ice.git
Fix: disable swcrc by default (#6746)
* fix: disable swcrc by default * fix: modify options inside transformer
This commit is contained in:
parent
41be253aa9
commit
167c8fec13
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@ice/shared-config': patch
|
||||
---
|
||||
|
||||
fix: disable swcrc by default
|
||||
|
|
@ -80,6 +80,7 @@ const compilationPlugin = (options: Options): UnpluginOptions => {
|
|||
const suffix = (['jsx', 'tsx'] as JSXSuffix[]).find(suffix => new RegExp(`\\.${suffix}?$`).test(id));
|
||||
|
||||
const programmaticOptions: SwcConfig = {
|
||||
swcrc: false,
|
||||
filename: id,
|
||||
sourceMaps: !!sourceMap,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue