mirror of
https://github.com/swc-project/swc.git
synced 2025-01-07 06:06:41 +03:00
c9adf03338
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.
6 lines
212 B
JavaScript
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);
|