Skip to content

parser: module information does not include type exports #10505

@nebrius

Description

@nebrius

I'm using the oxc-parser v0.64.0 npm module that's called from TypeScript code running in Node.js 23.10.0 to do some custom import graph analysis. First off, I want to say the performance of oxc is incredible, well done!

I've encountered what I suspect is a bug, but might also be user error on my part: module information for a test file doesn't include type re-exports.

Repro code in TypeScript:

import oxc from 'oxc-parser';

const code = `export type { Foo } from './a';`;

const result = oxc.parseSync('/project/b.ts', code, {
  sourceType: 'module',
});

console.log(result.module.staticExports);

Actual output:

[] // empty array

Expected output:

An array with an entry describing the type export.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueExperience Level - Good for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions