Skip to content

Commit fc433cb

Browse files
committed
feat: expose rolldown moduleFederationPlugin
1 parent 0f620f2 commit fc433cb

File tree

4 files changed

+79
-75
lines changed

4 files changed

+79
-75
lines changed

packages/vite/index.cjs

Lines changed: 1 addition & 0 deletions
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) =>

packages/vite/package.json

Lines changed: 1 addition & 1 deletion
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": "1.0.0-beta.3-commit.b546e53"
91+
"rolldown": "https://pkg.pr.new/rolldown@3673"
9292
},
9393
"optionalDependencies": {
9494
"fsevents": "~2.3.3"

packages/vite/src/node/index.ts

Lines changed: 2 additions & 0 deletions
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,

pnpm-lock.yaml

Lines changed: 75 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)