@module-federation/vite 1.1.4 → 1.1.5
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/lib/index.cjs +4 -1
- package/lib/index.esm.js +4 -1
- package/lib/index.modern.js +4 -1
- package/lib/index.umd.js +4 -1
- package/package.json +17 -19
package/lib/index.cjs
CHANGED
|
@@ -51,7 +51,7 @@ var addEntry = function addEntry(_ref) {
|
|
|
51
51
|
},
|
|
52
52
|
configResolved: function configResolved(config) {
|
|
53
53
|
viteConfig = config;
|
|
54
|
-
devEntryPath = config.base + devEntryPath.replace(/^\//, '');
|
|
54
|
+
devEntryPath = config.base + devEntryPath.replace(/\\\\?/g, '/').replace(/.+?\:([/\\])[/\\]?/, '$1').replace(/^\//, '');
|
|
55
55
|
},
|
|
56
56
|
configureServer: function configureServer(server) {
|
|
57
57
|
var _server$httpServer;
|
|
@@ -1285,6 +1285,9 @@ function federation(mfUserOptions) {
|
|
|
1285
1285
|
}), [PluginDevProxyModuleTopLevelAwait(), {
|
|
1286
1286
|
name: 'module-federation-vite',
|
|
1287
1287
|
enforce: 'post',
|
|
1288
|
+
// @ts-expect-error
|
|
1289
|
+
// used to expose plugin options: https://github.com/rolldown/rolldown/discussions/2577#discussioncomment-11137593
|
|
1290
|
+
_options: options,
|
|
1288
1291
|
config: function config(_config, _ref) {
|
|
1289
1292
|
var _config$optimizeDeps, _config$optimizeDeps2, _config$optimizeDeps3, _config$optimizeDeps4;
|
|
1290
1293
|
// TODO: singleton
|
package/lib/index.esm.js
CHANGED
|
@@ -28,7 +28,7 @@ var addEntry = function addEntry(_ref) {
|
|
|
28
28
|
},
|
|
29
29
|
configResolved: function configResolved(config) {
|
|
30
30
|
viteConfig = config;
|
|
31
|
-
devEntryPath = config.base + devEntryPath.replace(/^\//, '');
|
|
31
|
+
devEntryPath = config.base + devEntryPath.replace(/\\\\?/g, '/').replace(/.+?\:([/\\])[/\\]?/, '$1').replace(/^\//, '');
|
|
32
32
|
},
|
|
33
33
|
configureServer: function configureServer(server) {
|
|
34
34
|
var _server$httpServer;
|
|
@@ -1262,6 +1262,9 @@ function federation(mfUserOptions) {
|
|
|
1262
1262
|
}), [PluginDevProxyModuleTopLevelAwait(), {
|
|
1263
1263
|
name: 'module-federation-vite',
|
|
1264
1264
|
enforce: 'post',
|
|
1265
|
+
// @ts-expect-error
|
|
1266
|
+
// used to expose plugin options: https://github.com/rolldown/rolldown/discussions/2577#discussioncomment-11137593
|
|
1267
|
+
_options: options,
|
|
1265
1268
|
config: function config(_config, _ref) {
|
|
1266
1269
|
var _config$optimizeDeps, _config$optimizeDeps2, _config$optimizeDeps3, _config$optimizeDeps4;
|
|
1267
1270
|
// TODO: singleton
|
package/lib/index.modern.js
CHANGED
|
@@ -29,7 +29,7 @@ const addEntry = ({
|
|
|
29
29
|
},
|
|
30
30
|
configResolved(config) {
|
|
31
31
|
viteConfig = config;
|
|
32
|
-
devEntryPath = config.base + devEntryPath.replace(/^\//, '');
|
|
32
|
+
devEntryPath = config.base + devEntryPath.replace(/\\\\?/g, '/').replace(/.+?\:([/\\])[/\\]?/, '$1').replace(/^\//, '');
|
|
33
33
|
},
|
|
34
34
|
configureServer(server) {
|
|
35
35
|
var _server$httpServer;
|
|
@@ -1312,6 +1312,9 @@ function federation(mfUserOptions) {
|
|
|
1312
1312
|
}), PluginDevProxyModuleTopLevelAwait(), {
|
|
1313
1313
|
name: 'module-federation-vite',
|
|
1314
1314
|
enforce: 'post',
|
|
1315
|
+
// @ts-expect-error
|
|
1316
|
+
// used to expose plugin options: https://github.com/rolldown/rolldown/discussions/2577#discussioncomment-11137593
|
|
1317
|
+
_options: options,
|
|
1315
1318
|
config(config, {
|
|
1316
1319
|
command: _command
|
|
1317
1320
|
}) {
|
package/lib/index.umd.js
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
configResolved: function configResolved(config) {
|
|
51
51
|
viteConfig = config;
|
|
52
|
-
devEntryPath = config.base + devEntryPath.replace(/^\//, '');
|
|
52
|
+
devEntryPath = config.base + devEntryPath.replace(/\\\\?/g, '/').replace(/.+?\:([/\\])[/\\]?/, '$1').replace(/^\//, '');
|
|
53
53
|
},
|
|
54
54
|
configureServer: function configureServer(server) {
|
|
55
55
|
var _server$httpServer;
|
|
@@ -1283,6 +1283,9 @@
|
|
|
1283
1283
|
}), [PluginDevProxyModuleTopLevelAwait(), {
|
|
1284
1284
|
name: 'module-federation-vite',
|
|
1285
1285
|
enforce: 'post',
|
|
1286
|
+
// @ts-expect-error
|
|
1287
|
+
// used to expose plugin options: https://github.com/rolldown/rolldown/discussions/2577#discussioncomment-11137593
|
|
1288
|
+
_options: options,
|
|
1286
1289
|
config: function config(_config, _ref) {
|
|
1287
1290
|
var _config$optimizeDeps, _config$optimizeDeps2, _config$optimizeDeps3, _config$optimizeDeps4;
|
|
1288
1291
|
// TODO: singleton
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/vite",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Vite plugin for Module Federation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -9,22 +9,6 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"lib/**/*"
|
|
11
11
|
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"prepare": "husky install",
|
|
14
|
-
"fmt": "prettier --write src",
|
|
15
|
-
"fmt.check": "prettier --check src",
|
|
16
|
-
"format": "pretty-quick",
|
|
17
|
-
"dev": "microbundle watch --no-sourcemap --compress=false",
|
|
18
|
-
"build": "rimraf lib && microbundle --no-sourcemap --compress=false",
|
|
19
|
-
"dev-rv": "pnpm -filter 'examples-rust-vite*' run dev",
|
|
20
|
-
"preview-rv": "pnpm -filter 'examples-rust-vite*' run preview",
|
|
21
|
-
"dev-vv": "pnpm -filter 'examples-vite-vite*' run dev",
|
|
22
|
-
"dev-nv": "pnpm -filter 'examples-nuxt-vite-host' -filter 'examples-vite-vite-remote' run dev",
|
|
23
|
-
"preview-vv": "pnpm -filter 'examples-vite-vite*' run preview",
|
|
24
|
-
"multi-example": "pnpm --filter \"multi-example-*\" --parallel run start",
|
|
25
|
-
"test": "vitest",
|
|
26
|
-
"e2e": "playwright test"
|
|
27
|
-
},
|
|
28
12
|
"repository": {
|
|
29
13
|
"type": "git",
|
|
30
14
|
"url": "git+https://github.com/module-federation/vite.git"
|
|
@@ -44,7 +28,6 @@
|
|
|
44
28
|
"url": "https://github.com/module-federation/vite/issues"
|
|
45
29
|
},
|
|
46
30
|
"homepage": "https://github.com/module-federation/vite#readme",
|
|
47
|
-
"packageManager": "pnpm@9.1.3",
|
|
48
31
|
"dependencies": {
|
|
49
32
|
"@module-federation/runtime": "^0.6.8",
|
|
50
33
|
"@rollup/pluginutils": "^5.1.0",
|
|
@@ -65,5 +48,20 @@
|
|
|
65
48
|
"rimraf": "^6.0.1",
|
|
66
49
|
"vite": "^5.4.3",
|
|
67
50
|
"wait-on": "^8.0.1"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"fmt": "prettier --write src",
|
|
54
|
+
"fmt.check": "prettier --check src",
|
|
55
|
+
"format": "pretty-quick",
|
|
56
|
+
"dev": "microbundle watch --no-sourcemap --compress=false",
|
|
57
|
+
"build": "rimraf lib && microbundle --no-sourcemap --compress=false",
|
|
58
|
+
"dev-rv": "pnpm -filter 'examples-rust-vite*' run dev",
|
|
59
|
+
"preview-rv": "pnpm -filter 'examples-rust-vite*' run preview",
|
|
60
|
+
"dev-vv": "pnpm -filter 'examples-vite-vite*' run dev",
|
|
61
|
+
"dev-nv": "pnpm -filter 'examples-nuxt-vite-host' -filter 'examples-vite-vite-remote' run dev",
|
|
62
|
+
"preview-vv": "pnpm -filter 'examples-vite-vite*' run preview",
|
|
63
|
+
"multi-example": "pnpm --filter \"multi-example-*\" --parallel run start",
|
|
64
|
+
"test": "vitest",
|
|
65
|
+
"e2e": "playwright test"
|
|
68
66
|
}
|
|
69
|
-
}
|
|
67
|
+
}
|