diff --git a/src/test/transpilers.spec.ts b/src/test/transpilers.spec.ts index d11c368bf..185d92ce8 100644 --- a/src/test/transpilers.spec.ts +++ b/src/test/transpilers.spec.ts @@ -120,23 +120,4 @@ test.suite('swc', (test) => { ); }); }); - - test.suite('preserves import assertions for json imports', (test) => { - test.if(tsSupportsImportAssertions); - test( - 'basic json import', - compileMacro, - { module: 'esnext' }, - outdent` - import document from './document.json' assert {type: 'json'}; - document; - `, - outdent` - import document from './document.json' assert { - type: 'json' - }; - document; - ` - ); - }); }); diff --git a/src/transpilers/swc.ts b/src/transpilers/swc.ts index 16868cad2..9b438d59b 100644 --- a/src/transpilers/swc.ts +++ b/src/transpilers/swc.ts @@ -235,9 +235,6 @@ export function createSwcOptions( }, }, keepClassNames, - experimental: { - keepImportAssertions: true, - }, }, };