8000 native esm loader with `jiti.import` · Issue #32 · unjs/jiti · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
native esm loader with jiti.import #32
Closed
@pi0

Description

@pi0

In contexts where file extension is explicit .mjs or closest package.json has type: module we may use native ESM and for typescript, disable CommonJS transforms.

Blocker is, jiti is supposed to be used in a cjs context (require replacement). We probably need to implement a new function like jiti.import that returns Promise (compatible to be dynamic import replacement)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0