@module-federation/runtime-tools 0.0.0-next-20241105061413 → 0.0.0-next-20241105091216

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 CHANGED
@@ -1,13 +1,16 @@
1
1
  # @module-federation/runtime-tools
2
2
 
3
- ## 0.0.0-next-20241105061413
3
+ ## 0.0.0-next-20241105091216
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 206b56d: disable hoistTransitiveImports for better tree shake
8
+ - Updated dependencies [66b7ab6]
7
9
  - Updated dependencies [54bfd1c]
8
- - Updated dependencies [aeda8cb]
9
- - @module-federation/runtime@0.0.0-next-20241105061413
10
- - @module-federation/webpack-bundler-runtime@0.0.0-next-20241105061413
10
+ - Updated dependencies [879ad87]
11
+ - Updated dependencies [206b56d]
12
+ - @module-federation/runtime@0.0.0-next-20241105091216
13
+ - @module-federation/webpack-bundler-runtime@0.0.0-next-20241105091216
11
14
 
12
15
  ## 0.6.16
13
16
 
package/dist/package.json CHANGED
@@ -12,17 +12,17 @@
12
12
  "exports": {
13
13
  ".": {
14
14
  "types": "./dist/index.cjs.d.ts",
15
- "import": "./dist/index.esm.js",
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.js",
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.js",
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.0.0-next-20241105061413",
3
+ "version": "0.0.0-next-20241105091216",
4
4
  "author": "zhanghang <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.cjs",
6
- "module": "./dist/index.esm.js",
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.js",
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.js",
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.js",
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.0.0-next-20241105061413",
45
- "@module-federation/webpack-bundler-runtime": "0.0.0-next-20241105061413"
44
+ "@module-federation/runtime": "0.0.0-next-20241105091216",
45
+ "@module-federation/webpack-bundler-runtime": "0.0.0-next-20241105091216"
46
46
  }
47
47
  }
package/rollup.config.js CHANGED
@@ -11,11 +11,27 @@ module.exports = (rollupConfig) => {
11
11
  rollupConfig.output = rollupConfig.output.map((c) => ({
12
12
  ...c,
13
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,
14
22
  }));
15
23
  } else {
16
24
  rollupConfig.output = {
17
25
  ...rollupConfig.output,
18
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,
19
35
  };
20
36
  }
21
37
 
File without changes
File without changes