@farm.js/federation 0.1.0-beta.52 → 0.1.0-beta.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/package.json +7 -4
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC9B,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,GACzB,CAAC;AAEF,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC9B,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,GACzB,CAAC;AAEF,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,gKA+BpD"}
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,10 @@ export function federation(options) {
|
|
|
11
11
|
1) {
|
|
12
12
|
throw new Error("[farm:federation] Configure federation in one federation() instance");
|
|
13
13
|
}
|
|
14
|
+
if (config.renderer === false) {
|
|
15
|
+
throw new Error("[farm:federation] Federation shares browser components, so it needs a renderer. " +
|
|
16
|
+
"Remove `renderer: false` to use it.");
|
|
17
|
+
}
|
|
14
18
|
const renderer = config.renderer ?? { name: "react", dedupe: ["react", "react-dom"] };
|
|
15
19
|
const resolved = resolveFederationOptions(options, renderer);
|
|
16
20
|
const vite = config.vite ?? {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farm.js/federation",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.54",
|
|
4
4
|
"description": "Client-side Module Federation for Farm.js applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"farm.js",
|
|
@@ -36,14 +36,17 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@module-federation/runtime": "^2.9.2",
|
|
39
|
-
"@module-federation/vite": "^1.23.7"
|
|
40
|
-
"@farm.js/core": "0.1.60"
|
|
39
|
+
"@module-federation/vite": "^1.23.7"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"@types/node": "^22.20.5",
|
|
44
43
|
"typescript": "^5.3.3",
|
|
45
44
|
"vite": "8.3.4",
|
|
46
|
-
"vitest": "5.0.5"
|
|
45
|
+
"vitest": "5.0.5",
|
|
46
|
+
"@farm.js/core": "0.1.81"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@farm.js/core": ">=0.1.78 <0.3.0"
|
|
47
50
|
},
|
|
48
51
|
"engines": {
|
|
49
52
|
"node": ">=22.13.0"
|