@module-federation/runtime-tools 0.6.15 → 0.7.0
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/CHANGELOG.md +21 -0
- package/dist/package.json +4 -4
- package/package.json +7 -7
- package/rollup.config.js +29 -0
- /package/dist/{index.esm.js → index.esm.mjs} +0 -0
- /package/dist/{runtime.esm.js → runtime.esm.mjs} +0 -0
- /package/dist/{webpack-bundler-runtime.esm.js → webpack-bundler-runtime.esm.mjs} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @module-federation/runtime-tools
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 206b56d: disable hoistTransitiveImports for better tree shake
|
|
8
|
+
- Updated dependencies [752537b]
|
|
9
|
+
- Updated dependencies [54bfd1c]
|
|
10
|
+
- Updated dependencies [879ad87]
|
|
11
|
+
- Updated dependencies [206b56d]
|
|
12
|
+
- @module-federation/runtime@0.7.0
|
|
13
|
+
- @module-federation/webpack-bundler-runtime@0.7.0
|
|
14
|
+
|
|
15
|
+
## 0.6.16
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 024df60: disable hoistTransitiveImports for better tree shake
|
|
20
|
+
- Updated dependencies [024df60]
|
|
21
|
+
- @module-federation/webpack-bundler-runtime@0.6.16
|
|
22
|
+
- @module-federation/runtime@0.6.16
|
|
23
|
+
|
|
3
24
|
## 0.6.15
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/runtime-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"author": "zhanghang <hanric.zhang@gmail.com>",
|
|
5
5
|
"main": "./index.cjs.js",
|
|
6
6
|
"module": "./index.esm.js",
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/index.cjs.d.ts",
|
|
15
|
-
"import": "./dist/index.esm.
|
|
15
|
+
"import": "./dist/index.esm.mjs",
|
|
16
16
|
"require": "./dist/index.cjs.js"
|
|
17
17
|
},
|
|
18
18
|
"./runtime": {
|
|
19
19
|
"types": "./dist/runtime.cjs.d.ts",
|
|
20
|
-
"import": "./dist/runtime.esm.
|
|
20
|
+
"import": "./dist/runtime.esm.mjs",
|
|
21
21
|
"require": "./dist/runtime.cjs.js"
|
|
22
22
|
},
|
|
23
23
|
"./webpack-bundler-runtime": {
|
|
24
24
|
"types": "./dist/webpack-bundler-runtime.cjs.d.ts",
|
|
25
|
-
"import": "./dist/webpack-bundler-runtime.esm.
|
|
25
|
+
"import": "./dist/webpack-bundler-runtime.esm.mjs",
|
|
26
26
|
"require": "./dist/webpack-bundler-runtime.cjs.js"
|
|
27
27
|
},
|
|
28
28
|
"./*": "./*"
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/runtime-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"author": "zhanghang <hanric.zhang@gmail.com>",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
|
-
"module": "./dist/index.esm.
|
|
6
|
+
"module": "./dist/index.esm.mjs",
|
|
7
7
|
"types": "./dist/index.cjs.d.ts",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"publishConfig": {
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/index.cjs.d.ts",
|
|
15
|
-
"import": "./dist/index.esm.
|
|
15
|
+
"import": "./dist/index.esm.mjs",
|
|
16
16
|
"require": "./dist/index.cjs.js"
|
|
17
17
|
},
|
|
18
18
|
"./runtime": {
|
|
19
19
|
"types": "./dist/runtime.cjs.d.ts",
|
|
20
|
-
"import": "./dist/runtime.esm.
|
|
20
|
+
"import": "./dist/runtime.esm.mjs",
|
|
21
21
|
"require": "./dist/runtime.cjs.js"
|
|
22
22
|
},
|
|
23
23
|
"./webpack-bundler-runtime": {
|
|
24
24
|
"types": "./dist/webpack-bundler-runtime.cjs.d.ts",
|
|
25
|
-
"import": "./dist/webpack-bundler-runtime.esm.
|
|
25
|
+
"import": "./dist/webpack-bundler-runtime.esm.mjs",
|
|
26
26
|
"require": "./dist/webpack-bundler-runtime.cjs.js"
|
|
27
27
|
},
|
|
28
28
|
"./*": "./*"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@module-federation/runtime": "0.
|
|
45
|
-
"@module-federation/webpack-bundler-runtime": "0.
|
|
44
|
+
"@module-federation/runtime": "0.7.0",
|
|
45
|
+
"@module-federation/webpack-bundler-runtime": "0.7.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/rollup.config.js
CHANGED
|
@@ -6,5 +6,34 @@ module.exports = (rollupConfig) => {
|
|
|
6
6
|
'packages/runtime-tools/src/webpack-bundler-runtime.ts',
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
+
// Check if output is an array and add hoistTransitiveImports: false
|
|
10
|
+
if (Array.isArray(rollupConfig.output)) {
|
|
11
|
+
rollupConfig.output = rollupConfig.output.map((c) => ({
|
|
12
|
+
...c,
|
|
13
|
+
hoistTransitiveImports: false,
|
|
14
|
+
entryFileNames:
|
|
15
|
+
c.format === 'esm'
|
|
16
|
+
? c.entryFileNames.replace('.js', '.mjs')
|
|
17
|
+
: c.entryFileNames,
|
|
18
|
+
chunkFileNames:
|
|
19
|
+
c.format === 'esm'
|
|
20
|
+
? c.chunkFileNames.replace('.js', '.mjs')
|
|
21
|
+
: c.chunkFileNames,
|
|
22
|
+
}));
|
|
23
|
+
} else {
|
|
24
|
+
rollupConfig.output = {
|
|
25
|
+
...rollupConfig.output,
|
|
26
|
+
hoistTransitiveImports: false,
|
|
27
|
+
entryFileNames:
|
|
28
|
+
rollupConfig.output.format === 'esm'
|
|
29
|
+
? rollupConfig.output.entryFileNames.replace('.js', '.mjs')
|
|
30
|
+
: rollupConfig.output.entryFileNames,
|
|
31
|
+
chunkFileNames:
|
|
32
|
+
rollupConfig.output.format === 'esm'
|
|
33
|
+
? rollupConfig.output.chunkFileNames.replace('.js', '.mjs')
|
|
34
|
+
: rollupConfig.output.chunkFileNames,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
9
38
|
return rollupConfig;
|
|
10
39
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|