-
-
Notifications
You must be signed in to change notification settings - Fork 923
Description
Import attributes are preserved for import statements, but attributes for export statements are dropped during transformation.
export { default } from "./index.json" with { type: "json" };
// Above is transformed to:
export { default } from "./index.json";Reproduction:
npm install oxc-transform@0.116.0import { transform } from "oxc-transform";
const result = await transform(
"test.js",
"export {default} from './index.json' with {type: 'json'}",
);
console.log(result.code);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackPriority
None yet
Effort
None yet