Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(esm-shim): use prefix for build in module imports #1622

Merged
merged 2 commits into from
Nov 5, 2023
Merged

refactor(esm-shim): use prefix for build in module imports #1622

merged 2 commits into from
Nov 5, 2023

Conversation

Peeterush
Copy link
Contributor

Rollup Plugin Name: esm-shim

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes
  • no

Breaking Changes?

  • yes
  • no

List any relevant issue numbers:

Description

Node's build-in modules can be imported with or without node: prefix.
Currently, esm-shim does not use the prefix in the injected shim. I propose to add this prefix for compatibility with environments other than Node, e.g. Deno.

@tada5hi tada5hi changed the title esm-shim: use 'node:' prefix for build in module imports refactor(esm-shim): use prefix for build in module imports Nov 4, 2023
@shellscape
Copy link
Collaborator

thanks!

@shellscape shellscape merged commit a72d786 into rollup:master Nov 5, 2023
5 checks passed
@Peeterush Peeterush deleted the esm-shim-node-prefix branch November 5, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants