Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automatically enable tryNative for Deno #402

@lucacasonato

Description

@lucacasonato

Describe the feature

While investigating some performance traces in Deno today, I noticed a program spending 200ms loading jiti, mostly because of it's bundled babel dependency.

This is not great because jiti is not needed in Deno, as Deno already supports cjs/ESM interop, and TypeScript transpilation out of the box.

Could you use an export condition to just always alias jiti to jiti/native in Deno? The export condition is "deno".

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions