Skip to content

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

Merged
fi3ework merged 1 commit intomainfrom
commonjs-import
Nov 13, 2024
Merged

feat(externals): support 'commonjs-import' type#8414
fi3ework merged 1 commit intomainfrom
commonjs-import

Conversation

@fi3ework
Copy link
Copy Markdown
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
@netlify
Copy link
Copy Markdown

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
@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