@module-federation/runtime-tools 0.0.0-next-20241105103421 → 0.0.0-next-20241105211652

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