You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using modern.js's source build (rspack source build plugin I guess) with module federation. In the reproduction repo, there are three apps/packages
app -> lazy-dep
lazy-dep -> singleton-dep
In package app, singleton-dep is specified as a singleton in the module federation configuration.
Now, if singleton-dep's dist/ folder does not exist, it is expected to use its source code for module federation. However, it does not work. The dist/ folder seems to be required.
I'd like to know if it is not supported, or I misconfigured something, or it is a bug.
To reproduce:
pnpm i
cd apps/app
pnpm dev
# open another shell
rm -r packages/singleton-dep/dist
From app's log, it shows it is expecting packages/singleton-dep/dist/es/index.js
After dist/ is removed, app could not compile and says × resolving fallback for shared module singleton-dep, the app could not run either.
Describe the bug
I am using modern.js's source build (rspack source build plugin I guess) with module federation. In the reproduction repo, there are three apps/packages
In package app, singleton-dep is specified as a singleton in the module federation configuration.
Now, if singleton-dep's
dist/
folder does not exist, it is expected to use its source code for module federation. However, it does not work. Thedist/
folder seems to be required.I'd like to know if it is not supported, or I misconfigured something, or it is a bug.
To reproduce:
From app's log, it shows it is expecting
packages/singleton-dep/dist/es/index.js
After
dist/
is removed, app could not compile and says× resolving fallback for shared module singleton-dep
, the app could not run either.Reproduction
https://github.com/yf-yang/module-federation-sourcebuild-debug
Used Package Manager
pnpm
System Info
System: OS: macOS 13.2.1 CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz Memory: 21.04 MB / 32.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 22.4.1 - /usr/local/bin/node npm: 10.8.1 - /usr/local/bin/npm pnpm: 9.5.0 - /usr/local/bin/pnpm bun: 1.0.29 - ~/.bun/bin/bun Watchman: 2023.10.09.00 - /usr/local/bin/watchman Browsers: Chrome: 130.0.6723.70 Safari: 16.3
Validations
The text was updated successfully, but these errors were encountered: