Skip to content

Pass filename to the Babel transform #442

@cprecioso

Description

@cprecioso

Describe the feature

Right now, Babel gets called with empty filename and cwd:

jiti/src/babel.ts

Lines 29 to 30 in fd3bb28

filename: "",
cwd: "/",

If the correct data was passed, we could use it for plugins that are enabled/disabled based on the file name (e.g. we want to detect *.wasp.ts files to do some extra processing for our framework).

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions