@module-federation/rspack 0.6.16 → 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/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/package.json +1 -1
- package/package.json +7 -7
package/dist/index.cjs.js
CHANGED
|
@@ -153,7 +153,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
new compiler.webpack.container.ModuleFederationPlugin(options).apply(compiler);
|
|
156
|
-
var runtimeESMPath = require.resolve('@module-federation/runtime/dist/index.esm.
|
|
156
|
+
var runtimeESMPath = require.resolve('@module-federation/runtime/dist/index.esm.mjs', {
|
|
157
157
|
paths: [
|
|
158
158
|
options.implementation
|
|
159
159
|
]
|
|
@@ -165,7 +165,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
165
165
|
});
|
|
166
166
|
if (!disableManifest) {
|
|
167
167
|
this._statsPlugin = new manifest.StatsPlugin(options, {
|
|
168
|
-
pluginVersion: "0.
|
|
168
|
+
pluginVersion: "0.7.0",
|
|
169
169
|
bundler: 'rspack'
|
|
170
170
|
});
|
|
171
171
|
// @ts-ignore
|
|
@@ -175,7 +175,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
175
175
|
var nodeModulesPath = path.resolve(compiler.context, 'node_modules');
|
|
176
176
|
var reactPath = path.join(nodeModulesPath, '@module-federation/bridge-react');
|
|
177
177
|
// Check whether react exists
|
|
178
|
-
if (fs.existsSync(reactPath)) {
|
|
178
|
+
if (fs.existsSync(reactPath) && (!(options === null || options === void 0 ? void 0 : options.bridge) || !options.bridge.disableAlias)) {
|
|
179
179
|
new ReactBridgePlugin({
|
|
180
180
|
moduleFederationOptions: this._options
|
|
181
181
|
}).apply(compiler);
|
package/dist/index.esm.js
CHANGED
|
@@ -151,7 +151,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
new compiler.webpack.container.ModuleFederationPlugin(options).apply(compiler);
|
|
154
|
-
var runtimeESMPath = require.resolve('@module-federation/runtime/dist/index.esm.
|
|
154
|
+
var runtimeESMPath = require.resolve('@module-federation/runtime/dist/index.esm.mjs', {
|
|
155
155
|
paths: [
|
|
156
156
|
options.implementation
|
|
157
157
|
]
|
|
@@ -163,7 +163,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
163
163
|
});
|
|
164
164
|
if (!disableManifest) {
|
|
165
165
|
this._statsPlugin = new StatsPlugin(options, {
|
|
166
|
-
pluginVersion: "0.
|
|
166
|
+
pluginVersion: "0.7.0",
|
|
167
167
|
bundler: 'rspack'
|
|
168
168
|
});
|
|
169
169
|
// @ts-ignore
|
|
@@ -173,7 +173,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
173
173
|
var nodeModulesPath = path.resolve(compiler.context, 'node_modules');
|
|
174
174
|
var reactPath = path.join(nodeModulesPath, '@module-federation/bridge-react');
|
|
175
175
|
// Check whether react exists
|
|
176
|
-
if (fs.existsSync(reactPath)) {
|
|
176
|
+
if (fs.existsSync(reactPath) && (!(options === null || options === void 0 ? void 0 : options.bridge) || !options.bridge.disableAlias)) {
|
|
177
177
|
new ReactBridgePlugin({
|
|
178
178
|
moduleFederationOptions: this._options
|
|
179
179
|
}).apply(compiler);
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/rspack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Module Federation",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"module": "./dist/index.esm.js",
|
|
20
20
|
"types": "./dist/index.cjs.d.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@module-federation/bridge-react-webpack-plugin": "0.
|
|
23
|
-
"@module-federation/dts-plugin": "0.
|
|
24
|
-
"@module-federation/managers": "0.
|
|
25
|
-
"@module-federation/manifest": "0.
|
|
26
|
-
"@module-federation/runtime-tools": "0.
|
|
27
|
-
"@module-federation/sdk": "0.
|
|
22
|
+
"@module-federation/bridge-react-webpack-plugin": "0.7.0",
|
|
23
|
+
"@module-federation/dts-plugin": "0.7.0",
|
|
24
|
+
"@module-federation/managers": "0.7.0",
|
|
25
|
+
"@module-federation/manifest": "0.7.0",
|
|
26
|
+
"@module-federation/runtime-tools": "0.7.0",
|
|
27
|
+
"@module-federation/sdk": "0.7.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@rspack/core": "^1.0.2"
|