Skip to content

isolatedDeclaration should emit valid modules even when nothing is exported #4023

@MichaelMitchell-at

Description

@MichaelMitchell-at

Tested version: 0.16.3

> require('oxc-transform').isolatedDeclaration('hello.ts', "import * as _ from '.';")
{ sourceText: '', errors: [] }

Expected: export {};

Actual: ``

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory - Bug

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions