Skip to content

oxc-transform: export attributes are dropped #20001

@tscpp

Description

@tscpp

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.0
import { transform } from "oxc-transform";

const result = await transform(
  "test.js",
  "export {default} from './index.json' with {type: 'json'}",
);

console.log(result.code);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions