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

feat(externals): support 'commonjs-import' type #8414

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

fi3ework
Copy link
Member

Summary

Fix web-infra-dev/rslib#121.

Introducing 'commonjs-import', a new Rspack exclusive external type for Rslib. It will turn all external module into commonjs type unless the ones with import().

Keeping import() will allowing import ESM modules from CJS module, esbuild also do this by default when node target is above 13.2.0.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: feature release: feature related release(mr only) labels Nov 12, 2024
Copy link

netlify bot commented Nov 12, 2024

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 8b4ce20
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/673335fa73c11c0008c030a6
😎 Deploy Preview https://deploy-preview-8414--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@fi3ework fi3ework requested a review from ahabhgk November 12, 2024 12:15
@fi3ework fi3ework merged commit 92ce991 into main Nov 13, 2024
34 checks passed
@fi3ework fi3ework deleted the commonjs-import branch November 13, 2024 06:48
@h-a-n-a h-a-n-a mentioned this pull request Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: preserve dynamic import in CJS
2 participants