Skip to content

fix: revert "fix(rslib): treat module identifier as normal (#11588)"#11630

Merged
fi3ework merged 1 commit intomainfrom
revert-rslib-module
Sep 10, 2025
Merged

fix: revert "fix(rslib): treat module identifier as normal (#11588)"#11630
fi3ework merged 1 commit intomainfrom
revert-rslib-module

Conversation

@fi3ework
Copy link
Member

This reverts commit 15ba68e.

Summary

"modulle" identifier hook is commonly used in bundling CJS module, can't be removed directly. this PR will break bundling in Rslib.

Related links

Checklist

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

Copilot AI review requested due to automatic review settings September 10, 2025 08:27
@netlify
Copy link

netlify bot commented Sep 10, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit b0ec093
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68c13667423d350008753158

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts a previous change that treated the module identifier as a normal identifier in Rslib's parser plugin. The revert is necessary because the module identifier hook is commonly used in bundling CommonJS modules and removing it would break bundling functionality in Rslib.

  • Removes the identifier method implementation that intercepted the module identifier
  • Removes associated test code that validated the module identifier handling
  • Removes the unused Ident import from the parser plugin

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
crates/rspack_plugin_rslib/src/parser_plugin.rs Removes the identifier method and Ident import that handled module identifier interception
tests/rspack-test/configCases/rslib/plugin-api/index.js Removes test function that used module identifier
tests/rspack-test/configCases/rslib/plugin-api/test.js Removes test assertions for module identifier handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Sep 10, 2025
@fi3ework fi3ework changed the title Revert "fix(rslib): treat module identifier as normal (#11588)" fix: revert "fix(rslib): treat module identifier as normal (#11588)" Sep 10, 2025
@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label Sep 10, 2025
@github-actions
Copy link
Contributor

📦 Binary Size-limit

Comparing b0ec093 to fix: no mangle for enum member value (#11629) by Gengkun

🎉 Size decreased by 128bytes from 47.23MB to 47.23MB (⬇️0.00%)

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 10, 2025

CodSpeed Performance Report

Merging #11630 will not alter performance

Comparing revert-rslib-module (b0ec093) with main (23ec7ac)

🎉 Hooray! codspeed-node just leveled up to 4.0.1!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

✅ 17 untouched benchmarks

@fi3ework fi3ework merged commit 5cf4f03 into main Sep 10, 2025
48 of 49 checks passed
@fi3ework fi3ework deleted the revert-rslib-module branch September 10, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug 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.

3 participants