Skip to content

feat: support attributes for ESM external module#8422

Merged
fi3ework merged 1 commit intomainfrom
external-attributes
Nov 15, 2024
Merged

feat: support attributes for ESM external module#8422
fi3ework merged 1 commit intomainfrom
external-attributes

Conversation

@fi3ework
Copy link
Copy Markdown
Member

@fi3ework fi3ework commented Nov 13, 2024

Summary

Fix web-infra-dev/rslib#413.

Synced webpack test functions to align with https://github.com/webpack/webpack/blob/a24e4fdd6e83992c7b017cfabafa82da72a1e4ce/test/ConfigTestCases.template.js. The diff on GitHub is terrible, here's my local semantic diff:

Code 2024-11-14 15 08 40

The webpack test was wrong before, but it can run under the webpack test simulated runtime, while Rspack doesn't fully aligned the test setup. Updated it at webpack/webpack#18981.

The test only run under node22+ while we're still using 18. I tested it locally.

Checklist

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

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

netlify bot commented Nov 13, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 5b46e39
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/6736bad14e93b3000852c742

@fi3ework fi3ework force-pushed the external-attributes branch 4 times, most recently from d6ef409 to e9caab6 Compare November 14, 2024 15:57
@fi3ework fi3ework marked this pull request as ready for review November 15, 2024 03:06
@fi3ework fi3ework merged commit 49a9974 into main Nov 15, 2024
@fi3ework fi3ework deleted the external-attributes branch November 15, 2024 09:16
@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.

[Bug]: The Import Attributes of an external module will be removed

2 participants