Skip to content

Commit 4fe04cd

Browse files
committed
feat: expose rolldown moduleFederationPlugin
1 parent 0f1c335 commit 4fe04cd

File tree

4 files changed

+142
-10
lines changed

4 files changed

+142
-10
lines changed

Diff for: packages/vite/index.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const asyncFunctions = [
2323
'preprocessCSS',
2424
'createBuilder',
2525
'runnerImport',
26+
'moduleFederationPlugin', // The rolldown internal using instanceof to detect BuiltinPlugin, the rolldown has cjs/esm bundles, make sure to use the same instance
2627
]
2728
asyncFunctions.forEach((name) => {
2829
module.exports[name] = (...args) =>

Diff for: packages/vite/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"@oxc-project/runtime": "^0.51.0",
8989
"lightningcss": "^1.28.2",
9090
"postcss": "^8.5.1",
91-
"rolldown": "https://pkg.pr.new/rolldown@d6a3336"
91+
"rolldown": "https://pkg.pr.new/rolldown@3673"
9292
},
9393
"optionalDependencies": {
9494
"fsevents": "~2.3.3"

Diff for: packages/vite/src/node/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export { transformWithEsbuild } from './plugins/esbuild'
2222
export { transformWithOxc } from './plugins/oxc'
2323
export { buildErrorMessage } from './server/middlewares/error'
2424

25+
export { moduleFederationPlugin } from 'rolldown/experimental'
26+
2527
export {
2628
createRunnableDevEnvironment,
2729
isRunnableDevEnvironment,

Diff for: pnpm-lock.yaml

+138-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)