@module-federation/vite 1.11.0 → 1.11.1
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/README.md +4 -1
- package/lib/index.cjs +1813 -2102
- package/lib/index.d.cts +131 -0
- package/lib/index.d.mts +131 -0
- package/lib/index.mjs +1946 -0
- package/package.json +29 -18
- package/lib/index.d.ts +0 -4
- package/lib/index.esm.js +0 -2236
- package/lib/index.modern.js +0 -2288
- package/lib/index.umd.js +0 -2257
- package/lib/plugins/__tests__/pluginCheckAliasConflicts.test.d.ts +0 -1
- package/lib/plugins/__tests__/pluginDts.test.d.ts +0 -1
- package/lib/plugins/pluginAddEntry.d.ts +0 -10
- package/lib/plugins/pluginCheckAliasConflicts.d.ts +0 -9
- package/lib/plugins/pluginDevProxyModuleTopLevelAwait.d.ts +0 -2
- package/lib/plugins/pluginDts.d.ts +0 -3
- package/lib/plugins/pluginMFManifest.d.ts +0 -3
- package/lib/plugins/pluginModuleParseEnd.d.ts +0 -10
- package/lib/plugins/pluginProxyRemoteEntry.d.ts +0 -2
- package/lib/plugins/pluginProxyRemotes.d.ts +0 -3
- package/lib/plugins/pluginProxySharedModule_preBuild.d.ts +0 -7
- package/lib/plugins/pluginVarRemoteEntry.d.ts +0 -3
- package/lib/utils/PromiseStore.d.ts +0 -16
- package/lib/utils/VirtualModule.d.ts +0 -26
- package/lib/utils/__tests__/VirtualModule.test.d.ts +0 -1
- package/lib/utils/__tests__/cssModuleHelpers.test.d.ts +0 -1
- package/lib/utils/__tests__/helpers.d.ts +0 -2
- package/lib/utils/__tests__/normalizeModuleFederationOption.test.d.ts +0 -1
- package/lib/utils/__tests__/publicPath.test.d.ts +0 -1
- package/lib/utils/__tests__/serializeRuntimeOptions.test.d.ts +0 -1
- package/lib/utils/aliasToArrayPlugin.d.ts +0 -10
- package/lib/utils/bundleHelpers.d.ts +0 -2
- package/lib/utils/cssModuleHelpers.d.ts +0 -75
- package/lib/utils/localSharedImportMap_temp.d.ts +0 -2
- package/lib/utils/mapCodeToCodeWithSourcemap.d.ts +0 -4
- package/lib/utils/normalizeModuleFederationOptions.d.ts +0 -164
- package/lib/utils/normalizeOptimizeDeps.d.ts +0 -9
- package/lib/utils/packageNameUtils.d.ts +0 -22
- package/lib/utils/publicPath.d.ts +0 -9
- package/lib/utils/serializeRuntimeOptions.d.ts +0 -10
- package/lib/utils/wrapManualChunks.d.ts +0 -1
- package/lib/virtualModules/index.d.ts +0 -6
- package/lib/virtualModules/virtualExposes.d.ts +0 -2
- package/lib/virtualModules/virtualRemoteEntry.d.ts +0 -16
- package/lib/virtualModules/virtualRemotes.d.ts +0 -6
- package/lib/virtualModules/virtualRuntimeInitStatus.d.ts +0 -3
- package/lib/virtualModules/virtualShared_preBuild.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,29 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/vite",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "Vite plugin for Module Federation",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"source": "src/index.ts",
|
|
7
6
|
"main": "./lib/index.cjs",
|
|
8
|
-
"
|
|
7
|
+
"module": "./lib/index.mjs",
|
|
8
|
+
"types": "./lib/index.d.mts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": {
|
|
12
|
+
"import": "./lib/index.d.mts",
|
|
13
|
+
"require": "./lib/index.d.cts"
|
|
14
|
+
},
|
|
15
|
+
"import": "./lib/index.mjs",
|
|
16
|
+
"require": "./lib/index.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
9
19
|
"files": [
|
|
10
20
|
"lib/**/*"
|
|
11
21
|
],
|
|
12
22
|
"scripts": {
|
|
13
23
|
"prepare": "husky install",
|
|
14
|
-
"fmt": "
|
|
15
|
-
"fmt.check": "
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"build": "rimraf lib && microbundle --no-sourcemap --compress=false",
|
|
24
|
+
"fmt": "oxfmt src",
|
|
25
|
+
"fmt.check": "oxfmt --check src",
|
|
26
|
+
"dev": "tsdown --watch",
|
|
27
|
+
"build": "tsdown",
|
|
19
28
|
"dev-rv": "pnpm -filter 'examples-rust-vite*' run dev",
|
|
20
29
|
"preview-rv": "pnpm -filter 'examples-rust-vite*' run preview",
|
|
21
30
|
"dev-vv": "pnpm -filter 'examples-vite-vite*' run dev",
|
|
22
31
|
"dev-nv": "pnpm -filter 'examples-nuxt-vite-host' -filter 'examples-vite-vite-remote' run dev",
|
|
23
|
-
"preview-vv": "pnpm -filter 'examples-vite-vite*'
|
|
32
|
+
"preview-vv": "pnpm -filter 'examples-vite-vite*' --parallel run preview",
|
|
24
33
|
"multi-example": "pnpm --filter \"multi-example-*\" --parallel run start",
|
|
25
|
-
"test": "vitest",
|
|
26
|
-
"
|
|
34
|
+
"test": "vitest run src",
|
|
35
|
+
"test:integration": "vitest run integration",
|
|
36
|
+
"e2e": "playwright test",
|
|
37
|
+
"changeset": "changeset",
|
|
38
|
+
"changeset:status": "changeset status"
|
|
27
39
|
},
|
|
28
40
|
"repository": {
|
|
29
41
|
"type": "git",
|
|
@@ -44,7 +56,7 @@
|
|
|
44
56
|
"url": "https://github.com/module-federation/vite/issues"
|
|
45
57
|
},
|
|
46
58
|
"homepage": "https://github.com/module-federation/vite#readme",
|
|
47
|
-
"packageManager": "pnpm@
|
|
59
|
+
"packageManager": "pnpm@10.28.2",
|
|
48
60
|
"peerDependencies": {
|
|
49
61
|
"vite": "<=7.1.7"
|
|
50
62
|
},
|
|
@@ -59,17 +71,16 @@
|
|
|
59
71
|
"pathe": "^1.1.2"
|
|
60
72
|
},
|
|
61
73
|
"devDependencies": {
|
|
74
|
+
"@changesets/cli": "^2.27.9",
|
|
62
75
|
"@playwright/test": "^1.47.2",
|
|
63
76
|
"@types/node": "^22.7.4",
|
|
77
|
+
"cjs-dep": "workspace:*",
|
|
64
78
|
"husky": "^8.0.3",
|
|
65
|
-
"microbundle": "^0.15.1",
|
|
66
79
|
"mime-types": "^2.1.35",
|
|
67
|
-
"
|
|
68
|
-
"pretty-quick": "^4.0.0",
|
|
69
|
-
"rimraf": "^6.0.1",
|
|
80
|
+
"oxfmt": "^0.35.0",
|
|
70
81
|
"rollup": "^4.47.1",
|
|
82
|
+
"tsdown": "^0.20.3",
|
|
71
83
|
"vite": "^5.4.3",
|
|
72
|
-
"vitest": "^2.1.1"
|
|
73
|
-
"wait-on": "^8.0.1"
|
|
84
|
+
"vitest": "^2.1.1"
|
|
74
85
|
}
|
|
75
86
|
}
|
package/lib/index.d.ts
DELETED