@module-federation/runtime-tools 0.24.1 → 2.0.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.
@@ -1 +1,2 @@
1
- export { default } from '@module-federation/webpack-bundler-runtime';
1
+ declare const normalizedWebpackBundlerRuntime: {};
2
+ export default normalizedWebpackBundlerRuntime;
@@ -2,7 +2,10 @@
2
2
 
3
3
  var webpackBundlerRuntime = require('@module-federation/webpack-bundler-runtime');
4
4
 
5
+ const normalizedWebpackBundlerRuntime =
6
+ // Support both CJS module.exports payload and transpiled default payload.
7
+ webpackBundlerRuntime.default ??
8
+ webpackBundlerRuntime;
5
9
 
6
-
7
- module.exports = webpackBundlerRuntime;
10
+ module.exports = normalizedWebpackBundlerRuntime;
8
11
  //# sourceMappingURL=webpack-bundler-runtime.cjs.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"webpack-bundler-runtime.cjs.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"webpack-bundler-runtime.cjs.cjs","sources":["../../src/webpack-bundler-runtime.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAEA,MAAM,+BAA+B;AACnC;AACC,qBAA+C,CAAC,OAAO;AACxD,IAAA;;;;"}
@@ -1,2 +1,9 @@
1
- export { default } from '@module-federation/webpack-bundler-runtime';
1
+ import webpackBundlerRuntime from '@module-federation/webpack-bundler-runtime';
2
+
3
+ const normalizedWebpackBundlerRuntime =
4
+ // Support both CJS module.exports payload and transpiled default payload.
5
+ webpackBundlerRuntime.default ??
6
+ webpackBundlerRuntime;
7
+
8
+ export { normalizedWebpackBundlerRuntime as default };
2
9
  //# sourceMappingURL=webpack-bundler-runtime.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"webpack-bundler-runtime.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"webpack-bundler-runtime.esm.js","sources":["../../src/webpack-bundler-runtime.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA,MAAM,+BAA+B;AACnC;AACC,qBAA+C,CAAC,OAAO;AACxD,IAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime-tools",
3
- "version": "0.24.1",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "author": "zhanghang <hanric.zhang@gmail.com>",
6
6
  "main": "./dist/index.cjs.cjs",
@@ -79,7 +79,7 @@
79
79
  }
80
80
  },
81
81
  "dependencies": {
82
- "@module-federation/runtime": "0.24.1",
83
- "@module-federation/webpack-bundler-runtime": "0.24.1"
82
+ "@module-federation/runtime": "2.0.1",
83
+ "@module-federation/webpack-bundler-runtime": "2.0.1"
84
84
  }
85
85
  }