Skip to content

Commit 30e737e

Browse files
perf: add tree shake markers to enable/disable capabilities to reduce bundle size (#3704)
1 parent 82b8cac commit 30e737e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.changeset/ai-calm-dog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
"@module-federation/enhanced": patch
2+
"@module-federation/enhanced": minor
33
---
44

55
Updated ModuleFederationPlugin to enhance configuration capabilities and target environment identification.
66

77
- Introduced `definePluginOptions` to manage DefinePlugin settings.
88
- Added `FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN` to handle disabling of snapshot optimizations via experiments.
99
- Implemented environment target detection (`web` or `node`) based on compiler options and experiments.
10-
- Consolidated DefinePlugin application with the newly constructed `definePluginOptions`.
10+
- Consolidated DefinePlugin application with the newly constructed `definePluginOptions`.

.changeset/ai-sleepy-cat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@module-federation/sdk": patch
2+
"@module-federation/sdk": minor
33
---
44

55
Introduced environment-specific handling for `createScriptNode` and `loadScriptNode` functions and added build optimization options.

.changeset/ai-sleepy-lion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@module-federation/runtime-core": patch
2+
"@module-federation/runtime-core": minor
33
---
44

55
Add conditional functionality for snapshots and optimize entry loading.

.changeset/rspack-define-env-constants.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@module-federation/rspack": patch
2+
"@module-federation/rspack": minor
33
---
44

55
Update Rspack ModuleFederationPlugin to support enhanced configuration capabilities and environment targeting.

0 commit comments

Comments
 (0)