8000 MJS wrappers of ./cjs/subdir/*.js are incorrectly created at ./cjs/*-wrapper.mjs · Issue #253 · milesj/packemon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
MJS wrappers of ./cjs/subdir/*.js are incorrectly created at ./cjs/*-wrapper.mjs #253
Open
@BinToss

Description

@BinToss

The wrappers then try and fail to import their CJS module from './*.cjs'
The path of the wrappers depend on their CJS module's InputMap key.

Additionally...
The pattern for an InputMap key prohibits '/' characters.
image

Removing the '/' characters from the keys causes the "-wrapper.m,js" files to be created at ./cjs/*-wrapper.mjs instead of alongside the CJS files at ./cjs/dotnet/*.cjs
This doesn't work. The wrappers' import statements treat the CJS modules as if they're in the same directory and will fail to load them.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0