Skip to content

Commit 2e52e51

Browse files
feat(sdk): auto public path support for json remote (#2463)
Co-authored-by: ScriptedAlchemy <[email protected]> Co-authored-by: 2heal1 <[email protected]>
1 parent 3344fc1 commit 2e52e51

File tree

25 files changed

+111
-26
lines changed

25 files changed

+111
-26
lines changed

.changeset/chatty-lies-rush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/dts-plugin': patch
3+
---
4+
5+
Build zip url for json ext as well

.changeset/dull-pumas-bow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/managers': patch
3+
---
4+
5+
If library.name is not set, fallback to plugin name

.changeset/young-apricots-rule.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@module-federation/manifest': patch
3+
'@module-federation/sdk': patch
4+
---
5+
6+
publicPath: auto support for json manifest remote

.cursorignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv)
2+
./tmp
3+
./scripts
4+
./.git
5+
./packages/storybook-addon
6+
./packages/core
7+
./packages/utilities
8+
./packages/typescript
9+
./packages/native-*
10+
./apps

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/tmp
66
/out-tsc
77
/build
8-
/@mf-types
8+
**/@mf-types
99
**/@mf-types/**
1010
/docs
1111
/.nx

apps/manifest-demo/3009-webpack-provider/project.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
5151
"hmr": true,
5252
"port": 3009
5353
},
54+
"dependsOn": [
55+
{
56+
"target": "build",
57+
"dependencies": true
58+
}
59+
],
5460
"configurations": {
5561
"development": {
5662
"buildTarget": "3009-webpack-provider:build:development"

apps/manifest-demo/3009-webpack-provider/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = composePlugins(
1616
ignored: ['**/node_modules/**', '**/@mf-types/**'],
1717
};
1818
// publicPath must be specific url
19-
config.output.publicPath = 'http://localhost:3009/';
19+
config.output.publicPath = 'auto';
2020
config.plugins.push(
2121
new ModuleFederationPlugin({
2222
name: 'webpack_provider',

apps/manifest-demo/3010-rspack-provider/project.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
"buildTarget": "3010-rspack-provider:build",
3232
"port": 3010
3333
},
34+
"dependsOn": [
35+
{
36+
"target": "build",
37+
"dependencies": true
38+
}
39+
],
3440
"configurations": {
3541
"development": {
3642
"buildTarget": "3010-rspack-provider:build:development",

apps/manifest-demo/3011-rspack-manifest-provider/project.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
"buildTarget": "3011-rspack-manifest-provider:build",
3232
"port": 3011
3333
},
34+
"dependsOn": [
35+
{
36+
"target": "build",
37+
"dependencies": true
38+
}
39+
],
3440
"configurations": {
3541
"development": {
3642
"buildTarget": "3011-rspack-manifest-provider:build:development",

apps/manifest-demo/3012-rspack-js-entry-provider/project.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
"buildTarget": "3012-rspack-js-entry-provider:build",
3232
"port": 3012
3333
},
34+
"dependsOn": [
35+
{
36+
"target": "build",
37+
"dependencies": true
38+
}
39+
],
3440
"configurations": {
3541
"development": {
3642
"buildTarget": "3012-rspack-js-entry-provider:build:development",

0 commit comments

Comments
 (0)