Skip to content

Conversation

Timeless0911
Copy link
Contributor

@Timeless0911 Timeless0911 commented Jun 6, 2025

Summary

Bump Rsbuild 1.4.0-beta.2.

close: #869

Exciting changes about ESM outputs: no __webpack_exports__ and __WEBPACK_EXTERNAL_MODULE_ now:

Source

import { foo } from "./foo";
import path from "node:path";

console.log(path.join("bar"));

export { foo };

Before

import * as __WEBPACK_EXTERNAL_MODULE__foo_js_fdf5aa2d__ from "./foo.js";
import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
console.log(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join("bar"));
var __webpack_exports__foo = __WEBPACK_EXTERNAL_MODULE__foo_js_fdf5aa2d__.foo;
export { __webpack_exports__foo as foo };

Now

import { foo } from "./foo.js";
import external_node_path_default from "node:path";
console.log(external_node_path_default.join("bar"));
export { foo };

For default export, we will continue to enhance the module symbol name in the near future which means external_node_path_default -> node_path.

Related Links

Checklist

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

Copy link

netlify bot commented Jun 6, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 04e6252
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/68429dd04e458c00082f3325
😎 Deploy Preview https://deploy-preview-1042--rslib.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 project configuration.

@Timeless0911 Timeless0911 requested a review from fi3ework June 6, 2025 08:10
@Timeless0911 Timeless0911 enabled auto-merge (squash) June 6, 2025 08:13
@fi3ework fi3ework changed the title chore(deps): bump Rsbuild 1.4.0-beta.2 to enhance external module render fix: bump Rsbuild 1.4.0-beta.2 to enhance external module render Jun 6, 2025
@fi3ework fi3ework changed the title fix: bump Rsbuild 1.4.0-beta.2 to enhance external module render feat: bump Rsbuild 1.4.0-beta.2 to enhance external module render Jun 6, 2025
@Timeless0911 Timeless0911 merged commit c5fb13c into main Jun 6, 2025
26 checks passed
@Timeless0911 Timeless0911 deleted the chore/bump-rsbuild-140-beat-2 branch June 6, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: provide option to stop injecting __webpack_exports__ and __WEBPACK_EXTERNAL_MODULE_ variable prefix

2 participants