Skip to content

Commit 918294f

Browse files
ScriptedAlchemycursoragent2heal1
authored
feat: tsup build alignment and local setup fixes (#4460)
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: 2heal1 <TwoHeal@163.com>
1 parent dfbf05f commit 918294f

File tree

92 files changed

+2173
-2406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2173
-2406
lines changed

.changeset/curvy-taxis-hide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@module-federation/error-codes': patch
3+
'@module-federation/runtime': patch
4+
---
5+
6+
Migrate `@module-federation/error-codes` and `@module-federation/runtime` package builds from Nx Rollup executor to `tsdown`, and modernize their emitted `dist` filenames and export map targets.

.changeset/famous-needles-smell.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@module-federation/cli': patch
3+
'@module-federation/managers': patch
4+
'@module-federation/manifest': patch
5+
'@module-federation/modern-js': patch
6+
'@module-federation/modern-js-v3': patch
7+
'@module-federation/native-federation-tests': patch
8+
'@module-federation/native-federation-typescript': patch
9+
'@module-federation/nextjs-mf': patch
10+
'@module-federation/retry-plugin': patch
11+
---
12+
13+
Add missing release coverage for packages moved to the new build implementation and standardized ESM/CJS artifact outputs. This ensures package versioning and publish automation include the remaining affected packages on this branch.

.changeset/twelve-forks-whisper.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@module-federation/webpack-bundler-runtime': patch
3+
'@module-federation/runtime-core': patch
4+
'@module-federation/utilities': patch
5+
'@module-federation/node': patch
6+
'@module-federation/sdk': patch
7+
'@module-federation/runtime-tools': patch
8+
'@module-federation/data-prefetch': patch
9+
'@module-federation/enhanced': patch
10+
'@module-federation/rspack': patch
11+
'@module-federation/inject-external-runtime-core-plugin': patch
12+
---
13+
14+
Add runtime-safe access helpers for webpack require, webpack share-scope globals, and ignored dynamic imports, and migrate core/node runtime loaders to use these helpers. The helpers are exposed via a standalone `@module-federation/sdk/bundler` entrypoint so they can be built and consumed independently from the SDK main index bundle.

.cursor/mcp.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

.cursorignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@
33
**/.temp/
44
**/coverage/
55
**/dist/
6-
6+
!**/packages/dist/
77
# Ignore specific directories
8-
webpack/tooling/
9-
webpack/setup/
10-
webpack/test/
11-
webpack/benchmark/
12-
tools/
138
.husky/
149
.verdaccio/
1510

.trae/documents/Update rebuildSearchIndexByHtml to match Rspress v2 logic.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

apps/3002-checkout/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { NextFederationPlugin } = require('@module-federation/nextjs-mf');
1+
const NextFederationPlugin = require('@module-federation/nextjs-mf');
22
const path = require('path');
33
const reactPath = path.dirname(require.resolve('react/package.json'));
44
const reactDomPath = path.dirname(require.resolve('react-dom/package.json'));

apps/next-app-router/next-app-router-4000/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { NextFederationPlugin } = require('@module-federation/nextjs-mf');
1+
const NextFederationPlugin = require('@module-federation/nextjs-mf');
22

33
/** @type {import('next').NextConfig} */
44
const nextConfig = {

apps/next-app-router/next-app-router-4001/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { NextFederationPlugin } = require('@module-federation/nextjs-mf');
1+
const NextFederationPlugin = require('@module-federation/nextjs-mf');
22

33
/** @type {import('next').NextConfig} */
44
const nextConfig = {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@
303303
"terser-webpack-plugin": "^5.3.10",
304304
"ts-jest": "29.1.5",
305305
"ts-node": "10.9.1",
306+
"tsdown": "0.20.3",
306307
"tslib": "2.8.1",
307308
"tsup": "7.3.0",
308309
"typescript": "5.8.2",

0 commit comments

Comments
 (0)