swc/crates/swc_ecma_codegen/tests/fixture/issues/3110/input.js
Andreu Botella c9adf03338
fix(es): Handle import assertions correctly (#3113)
swc_ecma_codegen:
 - Implement codegen for static import assertions.

swc_ecma_transforms_proposal:
  - `import_assertions`: Support `export`s.

swc:
 - Add `jsc.experimental.keep_import_assertions`.

node-swc:
 - Fix typo.
2021-12-28 11:18:33 +00:00

6 lines
212 B
JavaScript

import data from "./data.json" assert { type: "json" };
export { default as data2 } from "./data2.json" assert { type: "json" };
export * as data3 from "./data3.json" assert { type: "json" };
console.log(data);