@module-federation/storybook-addon 0.0.0-feat-bridge-react-router-free-20251120090200 → 0.0.0-feat-modern-3-0-20251201041706
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/package.json +5 -6
- package/dist/preset.d.ts +1 -1
- package/dist/preset.js +8 -4
- package/dist/preset.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +17 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/storybook-addon.d.ts +1 -1
- package/dist/src/lib/storybook-addon.js +70 -30
- package/dist/src/lib/storybook-addon.js.map +1 -1
- package/dist/src/utils/correctImportPath.js +5 -1
- package/dist/src/utils/correctImportPath.js.map +1 -1
- package/dist/src/utils/with-module-federation-enhanced-rsbuild.js +25 -18
- package/dist/src/utils/with-module-federation-enhanced-rsbuild.js.map +1 -1
- package/dist/src/utils/with-module-federation.js +7 -5
- package/dist/src/utils/with-module-federation.js.map +1 -1
- package/package.json +7 -7
package/dist/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/storybook-addon",
|
|
3
|
-
"version": "0.0.0-feat-
|
|
3
|
+
"version": "0.0.0-feat-modern-3-0-20251201041706",
|
|
4
4
|
"description": "Storybook addon to consume remote module federated apps/components",
|
|
5
|
-
"type": "
|
|
5
|
+
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"jest-fixed-jsdom": "^0.0.9",
|
|
57
57
|
"@module-federation/utilities": "workspace:*",
|
|
58
|
-
"@rsbuild/core": "^1.
|
|
58
|
+
"@rsbuild/core": "^1.6.9",
|
|
59
59
|
"@storybook/node-logger": "7.6.20",
|
|
60
60
|
"@storybook/core": "^8.4.6",
|
|
61
61
|
"webpack": "5.94.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@rsbuild/core": "^1.0.1",
|
|
66
|
-
"@module-federation/sdk": "0.0.0-feat-
|
|
66
|
+
"@module-federation/sdk": "0.0.0-feat-modern-3-0-20251201041706",
|
|
67
67
|
"@nx/react": ">= 16.0.0",
|
|
68
68
|
"@nx/webpack": ">= 16.0.0",
|
|
69
69
|
"@storybook/core": ">= 8.2.0",
|
|
@@ -96,6 +96,5 @@
|
|
|
96
96
|
"webpack-virtual-modules": {
|
|
97
97
|
"optional": true
|
|
98
98
|
}
|
|
99
|
-
}
|
|
100
|
-
"module": "./src/index.js"
|
|
99
|
+
}
|
|
101
100
|
}
|
package/dist/preset.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ declare const _default: {
|
|
|
4
4
|
rsbuildFinal: (config: RsbuildConfig, options: moduleFederationPlugin.ModuleFederationPluginOptions) => RsbuildConfig;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export { PLUGIN_NAME } from './src/utils/with-module-federation-enhanced-rsbuild
|
|
7
|
+
export { PLUGIN_NAME } from './src/utils/with-module-federation-enhanced-rsbuild';
|
package/dist/preset.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PLUGIN_NAME = void 0;
|
|
4
|
+
const with_module_federation_enhanced_rsbuild_1 = require("./src/utils/with-module-federation-enhanced-rsbuild");
|
|
5
|
+
exports.default = {
|
|
3
6
|
rsbuildFinal: (config, options) => {
|
|
4
7
|
const { remotes, shared, name, shareStrategy } = options;
|
|
5
|
-
return withModuleFederation(config, {
|
|
8
|
+
return (0, with_module_federation_enhanced_rsbuild_1.withModuleFederation)(config, {
|
|
6
9
|
name,
|
|
7
10
|
remotes,
|
|
8
11
|
shared,
|
|
@@ -10,5 +13,6 @@ export default {
|
|
|
10
13
|
});
|
|
11
14
|
},
|
|
12
15
|
};
|
|
13
|
-
|
|
16
|
+
var with_module_federation_enhanced_rsbuild_2 = require("./src/utils/with-module-federation-enhanced-rsbuild");
|
|
17
|
+
Object.defineProperty(exports, "PLUGIN_NAME", { enumerable: true, get: function () { return with_module_federation_enhanced_rsbuild_2.PLUGIN_NAME; } });
|
|
14
18
|
//# sourceMappingURL=preset.js.map
|
package/dist/preset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../preset.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"preset.js","sourceRoot":"","sources":["../preset.ts"],"names":[],"mappings":";;;AAAA,iHAA2F;AAK3F,kBAAe;IACb,YAAY,EAAE,CACZ,MAAqB,EACrB,OAA6D,EAC7D,EAAE;QACF,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;QAEzD,OAAO,IAAA,8DAAoB,EAAC,MAAM,EAAE;YAClC,IAAI;YACJ,OAAO;YACP,MAAM;YACN,aAAa;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAC;AACF,+GAAkF;AAAzE,sIAAA,WAAW,OAAA"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './lib/storybook-addon
|
|
1
|
+
export * from './lib/storybook-addon';
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./lib/storybook-addon"), exports);
|
|
2
18
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Configuration } from 'webpack';
|
|
2
|
-
import withModuleFederation from '../utils/with-module-federation
|
|
2
|
+
import withModuleFederation from '../utils/with-module-federation';
|
|
3
3
|
import type { moduleFederationPlugin } from '@module-federation/sdk';
|
|
4
4
|
import type { ModuleFederationConfig } from '@nx/webpack';
|
|
5
5
|
export type Preset = string | {
|
|
@@ -1,56 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.webpack = exports.withModuleFederation = void 0;
|
|
40
|
+
const fs_1 = __importDefault(require("fs"));
|
|
41
|
+
const path_1 = require("path");
|
|
42
|
+
const process = __importStar(require("process"));
|
|
43
|
+
const webpack_virtual_modules_1 = __importDefault(require("webpack-virtual-modules"));
|
|
44
|
+
const webpack_1 = require("webpack");
|
|
45
|
+
const node_logger_1 = require("@storybook/node-logger");
|
|
46
|
+
const common_1 = require("@storybook/core/common");
|
|
47
|
+
const with_module_federation_1 = __importDefault(require("../utils/with-module-federation"));
|
|
48
|
+
exports.withModuleFederation = with_module_federation_1.default;
|
|
49
|
+
const correctImportPath_1 = require("../utils/correctImportPath");
|
|
50
|
+
const { ModuleFederationPlugin } = webpack_1.container;
|
|
51
|
+
const webpack = async (webpackConfig, options) => {
|
|
13
52
|
const { plugins = [], context: webpackContext } = webpackConfig;
|
|
14
53
|
const { moduleFederationConfig, presets, nxModuleFederationConfig } = options;
|
|
15
54
|
const context = webpackContext || process.cwd();
|
|
16
55
|
// Detect webpack version. More about storybook webpack config https://storybook.js.org/docs/react/addons/writing-presets#webpack
|
|
17
56
|
const webpackVersion = await presets.apply('webpackVersion');
|
|
18
|
-
logger.info(`=> [MF] Webpack ${webpackVersion} version detected`);
|
|
57
|
+
node_logger_1.logger.info(`=> [MF] Webpack ${webpackVersion} version detected`);
|
|
19
58
|
if (webpackVersion !== '5') {
|
|
20
59
|
throw new Error('Webpack 5 required: Configure Storybook to use the webpack5 builder');
|
|
21
60
|
}
|
|
22
61
|
if (nxModuleFederationConfig) {
|
|
23
|
-
logger.info(`=> [MF] Detect NX configuration`);
|
|
24
|
-
const wmf = await
|
|
62
|
+
node_logger_1.logger.info(`=> [MF] Detect NX configuration`);
|
|
63
|
+
const wmf = await (0, with_module_federation_1.default)(nxModuleFederationConfig);
|
|
25
64
|
webpackConfig = {
|
|
26
65
|
...webpackConfig,
|
|
27
66
|
...wmf(webpackConfig),
|
|
28
67
|
};
|
|
29
68
|
}
|
|
30
69
|
if (moduleFederationConfig) {
|
|
31
|
-
logger.info(`=> [MF] Push Module Federation plugin`);
|
|
70
|
+
node_logger_1.logger.info(`=> [MF] Push Module Federation plugin`);
|
|
32
71
|
// @ts-ignore enhanced add new remoteType 'module-import'
|
|
33
72
|
plugins.push(new ModuleFederationPlugin(moduleFederationConfig));
|
|
34
73
|
}
|
|
35
74
|
const entries = await presets.apply('entries');
|
|
36
|
-
const bootstrap = entries.map((entryFile) => `import '${correctImportPath(context, entryFile)}';`);
|
|
75
|
+
const bootstrap = entries.map((entryFile) => `import '${(0, correctImportPath_1.correctImportPath)(context, entryFile)}';`);
|
|
37
76
|
const index = plugins.findIndex((plugin) => plugin?.constructor.name === 'VirtualModulesPlugin');
|
|
38
77
|
if (index !== -1) {
|
|
39
|
-
logger.info(`=> [MF] Detected plugin VirtualModulesPlugin`);
|
|
78
|
+
node_logger_1.logger.info(`=> [MF] Detected plugin VirtualModulesPlugin`);
|
|
40
79
|
const plugin = plugins[index];
|
|
41
80
|
const virtualEntries = plugin.getModuleList('static');
|
|
42
81
|
const virtualEntriesPaths = Object.keys(virtualEntries);
|
|
43
|
-
logger.info(`=> [MF] Write files from VirtualModulesPlugin`);
|
|
82
|
+
node_logger_1.logger.info(`=> [MF] Write files from VirtualModulesPlugin`);
|
|
44
83
|
for (const virtualEntryPath of virtualEntriesPaths) {
|
|
45
84
|
const nodeModulesPath = '/node_modules/';
|
|
46
85
|
const filePathFromProjectRootDir = virtualEntryPath.replace(context, '');
|
|
47
86
|
let sourceCode = virtualEntries[virtualEntryPath];
|
|
48
87
|
let finalPath = virtualEntryPath;
|
|
49
|
-
let finalDir = dirname(virtualEntryPath);
|
|
88
|
+
let finalDir = (0, path_1.dirname)(virtualEntryPath);
|
|
50
89
|
// If virtual file is not in directory node_modules, move file in directory node_modules/.cache/storybook
|
|
51
90
|
if (!filePathFromProjectRootDir.startsWith(nodeModulesPath)) {
|
|
52
|
-
finalPath = join(context, nodeModulesPath, '.cache', 'storybook', filePathFromProjectRootDir);
|
|
53
|
-
finalDir = dirname(finalPath);
|
|
91
|
+
finalPath = (0, path_1.join)(context, nodeModulesPath, '.cache', 'storybook', filePathFromProjectRootDir);
|
|
92
|
+
finalDir = (0, path_1.dirname)(finalPath);
|
|
54
93
|
// Fix storybook stories' path in virtual module
|
|
55
94
|
if (
|
|
56
95
|
// For storybook version before 7
|
|
@@ -59,14 +98,14 @@ export const webpack = async (webpackConfig, options) => {
|
|
|
59
98
|
filePathFromProjectRootDir === '/storybook-stories.js') {
|
|
60
99
|
const isStorybookVersion7 = filePathFromProjectRootDir === '/storybook-stories.js';
|
|
61
100
|
const nonNormalizedStories = await presets.apply('stories');
|
|
62
|
-
const stories = normalizeStories(nonNormalizedStories, {
|
|
101
|
+
const stories = (0, common_1.normalizeStories)(nonNormalizedStories, {
|
|
63
102
|
configDir: options.configDir,
|
|
64
103
|
workingDir: context,
|
|
65
104
|
});
|
|
66
105
|
// For each story fix the import path
|
|
67
106
|
stories.forEach((story) => {
|
|
68
107
|
// Go up 3 times because the file was moved in /node_modules/.cache/storybook
|
|
69
|
-
const newDirectory = join('..', '..', '..', story.directory);
|
|
108
|
+
const newDirectory = (0, path_1.join)('..', '..', '..', story.directory);
|
|
70
109
|
// Adding trailing slash for story directory in storybook v7
|
|
71
110
|
const oldSrc = isStorybookVersion7
|
|
72
111
|
? `'${story.directory}/'`
|
|
@@ -79,11 +118,11 @@ export const webpack = async (webpackConfig, options) => {
|
|
|
79
118
|
});
|
|
80
119
|
}
|
|
81
120
|
}
|
|
82
|
-
if (!
|
|
83
|
-
|
|
121
|
+
if (!fs_1.default.existsSync(finalDir)) {
|
|
122
|
+
fs_1.default.mkdirSync(finalDir, { recursive: true });
|
|
84
123
|
}
|
|
85
|
-
|
|
86
|
-
bootstrap.push(`import '${correctImportPath(context, finalPath)}';`);
|
|
124
|
+
fs_1.default.writeFileSync(finalPath, sourceCode);
|
|
125
|
+
bootstrap.push(`import '${(0, correctImportPath_1.correctImportPath)(context, finalPath)}';`);
|
|
87
126
|
}
|
|
88
127
|
}
|
|
89
128
|
/**
|
|
@@ -91,7 +130,7 @@ export const webpack = async (webpackConfig, options) => {
|
|
|
91
130
|
* Entry file content is moved in bootstrap file. More details in the webpack documentation:
|
|
92
131
|
* https://webpack.js.org/concepts/module-federation/#uncaught-error-shared-module-is-not-available-for-eager-consumption
|
|
93
132
|
* */
|
|
94
|
-
const virtualModulePlugin = new
|
|
133
|
+
const virtualModulePlugin = new webpack_virtual_modules_1.default({
|
|
95
134
|
'./__entry.js': `import('./__bootstrap.js');`,
|
|
96
135
|
'./__bootstrap.js': bootstrap.join('\n'),
|
|
97
136
|
});
|
|
@@ -103,11 +142,12 @@ export const webpack = async (webpackConfig, options) => {
|
|
|
103
142
|
plugins[index] = virtualModulePlugin;
|
|
104
143
|
action = 'Replace';
|
|
105
144
|
}
|
|
106
|
-
logger.info(`=> [MF] ${action} plugin VirtualModulesPlugin to bootstrap entry point`);
|
|
145
|
+
node_logger_1.logger.info(`=> [MF] ${action} plugin VirtualModulesPlugin to bootstrap entry point`);
|
|
107
146
|
return {
|
|
108
147
|
...webpackConfig,
|
|
109
148
|
entry: ['./__entry.js'],
|
|
110
149
|
plugins,
|
|
111
150
|
};
|
|
112
151
|
};
|
|
152
|
+
exports.webpack = webpack;
|
|
113
153
|
//# sourceMappingURL=storybook-addon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storybook-addon.js","sourceRoot":"","sources":["../../../src/lib/storybook-addon.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"storybook-addon.js","sourceRoot":"","sources":["../../../src/lib/storybook-addon.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,+BAAqC;AACrC,iDAAmC;AACnC,sFAA2D;AAC3D,qCAIiB;AACjB,wDAAgD;AAChD,mDAA0D;AAC1D,6FAAmE;AAmB1D,+BAnBF,gCAAoB,CAmBE;AAlB7B,kEAA+D;AAK/D,MAAM,EAAE,sBAAsB,EAAE,GAAG,mBAAS,CAAC;AAetC,MAAM,OAAO,GAAG,KAAK,EAC1B,aAA4B,EAC5B,OAAgB,EACQ,EAAE;IAC1B,MAAM,EAAE,OAAO,GAAG,EAAE,EAAE,OAAO,EAAE,cAAc,EA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,CAAC;IACpB,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;QACjB,OAAO,CAAC,IAAI,CAAC,mBAAuD,CAAC,CAAC;IACxE,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,GAAG,mBAAuD,CAAC;QACzE,MAAM,GAAG,SAAS,CAAC;IACrB,CAAC;IACD,oBAAM,CAAC,IAAI,CACT,WAAW,MAAM,uDAAuD,CACzE,CAAC;IAEF,OAAO;QACL,GAAG,aAAa;QAChB,KAAK,EAAE,CAAC,cAAc,CAAC;QACvB,OAAO;KACR,CAAC;AACJ,CAAC,CAAC;AA5IW,QAAA,OAAO,WA4IlB"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.correctImportPath = void 0;
|
|
4
|
+
const correctImportPath = (context, entryFile) => {
|
|
2
5
|
if (typeof process !== 'undefined') {
|
|
3
6
|
if (process?.platform !== 'win32') {
|
|
4
7
|
return entryFile;
|
|
@@ -17,4 +20,5 @@ export const correctImportPath = (context, entryFile) => {
|
|
|
17
20
|
}
|
|
18
21
|
return null;
|
|
19
22
|
};
|
|
23
|
+
exports.correctImportPath = correctImportPath;
|
|
20
24
|
//# sourceMappingURL=correctImportPath.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correctImportPath.js","sourceRoot":"","sources":["../../../src/utils/correctImportPath.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"correctImportPath.js","sourceRoot":"","sources":["../../../src/utils/correctImportPath.ts"],"names":[],"mappings":";;;AAAO,MAAM,iBAAiB,GAAG,CAAC,OAAe,EAAE,SAAiB,EAAE,EAAE;IACtE,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;QACnC,IAAI,OAAO,EAAE,QAAQ,KAAK,OAAO,EAAE,CAAC;YAClC,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC;YACpE,OAAO,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACvC,CAAC;QAED,8DAA8D;QAC9D,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACtD,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAE3C,IAAI,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;YACvC,OAAO,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC;QAED,OAAO,KAAK,QAAQ,EAAE,CAAC;IACzB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAtBW,QAAA,iBAAiB,qBAsB5B"}
|
|
@@ -1,25 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.withModuleFederation = exports.PLUGIN_NAME = void 0;
|
|
7
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
const rspack_1 = require("@module-federation/enhanced/rspack");
|
|
10
|
+
const sdk_1 = require("@module-federation/sdk");
|
|
11
|
+
const correctImportPath_1 = require("./correctImportPath");
|
|
12
|
+
const tempDirPath = node_path_1.default.resolve(process.cwd(), `node_modules/${sdk_1.TEMP_DIR}`);
|
|
13
|
+
exports.PLUGIN_NAME = 'module-federation-storybook-addon';
|
|
8
14
|
// add bootstrap for host project
|
|
9
|
-
const bootstrapPath =
|
|
15
|
+
const bootstrapPath = node_path_1.default.resolve(process.cwd(), `node_modules/${sdk_1.TEMP_DIR}/storybook-bootstrap.js`);
|
|
10
16
|
const generateBootstrap = (context, entryPath) => {
|
|
11
|
-
return `import('${correctImportPath(context, entryPath)}');`;
|
|
17
|
+
return `import('${(0, correctImportPath_1.correctImportPath)(context, entryPath)}');`;
|
|
12
18
|
};
|
|
13
19
|
const writeBootstrap = (context, entryPath) => {
|
|
14
|
-
if (!
|
|
15
|
-
|
|
20
|
+
if (!node_fs_1.default.existsSync(tempDirPath)) {
|
|
21
|
+
node_fs_1.default.mkdirSync(tempDirPath);
|
|
16
22
|
}
|
|
17
|
-
if (
|
|
18
|
-
|
|
23
|
+
if (node_fs_1.default.existsSync(bootstrapPath)) {
|
|
24
|
+
node_fs_1.default.unlinkSync(bootstrapPath);
|
|
19
25
|
}
|
|
20
|
-
|
|
26
|
+
node_fs_1.default.writeFileSync(bootstrapPath, generateBootstrap(context, entryPath));
|
|
21
27
|
};
|
|
22
|
-
|
|
28
|
+
const withModuleFederation = (rsbuildConfig, options) => {
|
|
23
29
|
rsbuildConfig.plugins ??= [];
|
|
24
30
|
rsbuildConfig.source ??= {};
|
|
25
31
|
rsbuildConfig.source.entry ??= {};
|
|
@@ -44,9 +50,9 @@ export const withModuleFederation = (rsbuildConfig, options) => {
|
|
|
44
50
|
return mergeRsbuildConfig(config, mfConfig);
|
|
45
51
|
});
|
|
46
52
|
api.modifyBundlerChain(async (chain) => {
|
|
47
|
-
chain.plugin(PLUGIN_NAME).use(ModuleFederationPlugin, [
|
|
53
|
+
chain.plugin(exports.PLUGIN_NAME).use(rspack_1.ModuleFederationPlugin, [
|
|
48
54
|
{
|
|
49
|
-
name: options.name || PLUGIN_NAME,
|
|
55
|
+
name: options.name || exports.PLUGIN_NAME,
|
|
50
56
|
shared: {
|
|
51
57
|
react: {
|
|
52
58
|
singleton: true,
|
|
@@ -68,5 +74,6 @@ export const withModuleFederation = (rsbuildConfig, options) => {
|
|
|
68
74
|
rsbuildConfig.plugins.push(rsbuildPlugin);
|
|
69
75
|
return rsbuildConfig;
|
|
70
76
|
};
|
|
71
|
-
|
|
77
|
+
exports.withModuleFederation = withModuleFederation;
|
|
78
|
+
exports.default = exports.withModuleFederation;
|
|
72
79
|
//# sourceMappingURL=with-module-federation-enhanced-rsbuild.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-module-federation-enhanced-rsbuild.js","sourceRoot":"","sources":["../../../src/utils/with-module-federation-enhanced-rsbuild.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"with-module-federation-enhanced-rsbuild.js","sourceRoot":"","sources":["../../../src/utils/with-module-federation-enhanced-rsbuild.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAC7B,+DAA4E;AAC5E,gDAAkD;AAElD,2DAAwD;AAKxD,MAAM,WAAW,GAAG,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,gBAAgB,cAAQ,EAAE,CAAC,CAAC;AAC/D,QAAA,WAAW,GAAG,mCAAmC,CAAC;AAC/D,iCAAiC;AACjC,MAAM,aAAa,GAAG,mBAAI,CAAC,OAAO,CAChC,OAAO,CAAC,GAAG,EAAE,EACb,gBAAgB,cAAQ,yBAAyB,CAClD,CAAC;AACF,MAAM,iBAAiB,GAAG,CAAC,OAAe,EAAE,SAAiB,EAAE,EAAE;IAC/D,OAAO,WAAW,IAAA,qCAAiB,EAAC,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC;AAC/D,CAAC,CAAC;AACF,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,SAAiB,EAAE,EAAE;IAC5D,IAAI,CAAC,iB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AK;qBACX;iBACF,CAAC;gBACF,OAAO,kBAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAC9C,CAAC,CAAC,CAAC;YAEH,GAAG,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBACrC,KAAK,CAAC,MAAM,CAAC,mBAAW,CAAC,CAAC,GAAG,CAAC,+BAAsB,EAAE;oBACpD;wBACE,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,mBAAW;wBACjC,MAAM,EAAE;4BACN,KAAK,EAAE;gCACL,SAAS,EAAE,IAAI;6BAChB;4BACD,WAAW,EAAE;gCACX,SAAS,EAAE,IAAI;6BAChB;4BACD,GAAG,OAAO,CAAC,MAAM;yBAClB;wBACD,OAAO,EAAE;4BACP,GAAG,OAAO,CAAC,OAAO;yBACnB;wBACD,aAAa,EAAE,OAAO,CAAC,aAAa;qBACrC;iBACF,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;IAEF,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC1C,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAtDW,QAAA,oBAAoB,wBAsD/B;AAEF,kBAAe,4BAAoB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("@nx/module-federation/src/with-module-federation/webpack/utils");
|
|
4
|
+
const webpack_1 = require("webpack");
|
|
5
|
+
const { ModuleFederationPlugin } = webpack_1.container;
|
|
4
6
|
const updateMappedRemotes = (remotes) => {
|
|
5
7
|
const newRemotes = {};
|
|
6
8
|
Object.keys(remotes).forEach((key) => {
|
|
@@ -9,7 +11,7 @@ const updateMappedRemotes = (remotes) => {
|
|
|
9
11
|
return newRemotes;
|
|
10
12
|
};
|
|
11
13
|
const withModuleFederation = async (options) => {
|
|
12
|
-
const { mappedRemotes, sharedDependencies } = await getModuleFederationConfig(options);
|
|
14
|
+
const { mappedRemotes, sharedDependencies } = await (0, utils_1.getModuleFederationConfig)(options);
|
|
13
15
|
return (config) => {
|
|
14
16
|
config.experiments = { outputModule: false };
|
|
15
17
|
config.optimization = {
|
|
@@ -29,5 +31,5 @@ const withModuleFederation = async (options) => {
|
|
|
29
31
|
return config;
|
|
30
32
|
};
|
|
31
33
|
};
|
|
32
|
-
|
|
34
|
+
exports.default = withModuleFederation;
|
|
33
35
|
//# sourceMappingURL=with-module-federation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-module-federation.js","sourceRoot":"","sources":["../../../src/utils/with-module-federation.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"with-module-federation.js","sourceRoot":"","sources":["../../../src/utils/with-module-federation.ts"],"names":[],"mappings":";;AAAA,0FAA2G;AAC3G,qCAAmD;AAInD,MAAM,EAAE,sBAAsB,EAAE,GAAG,mBAAS,CAAC;AAE7C,MAAM,mBAAmB,GAAG,CAAC,OAA+B,EAAE,EAAE;IAC9D,MAAM,UAAU,GAA2B,EAAE,CAAC;IAE9C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnC,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,KAAK,EAAE,OAA+B,EAAE,EAAE;IACrE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,GACzC,MAAM,IAAA,iCAAyB,EAAC,OAAO,CAAC,CAAC;IAE3C,OAAO,CAAC,MAAqB,EAAE,EAAE;QAC/B,MAAM,CAAC,WAAW,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;QAE7C,MAAM,CAAC,YAAY,GAAG;YACpB,YAAY,EAAE,KAAK;SACpB,CAAC;QAEF,MAAM,CAAC,MAAM,GAAG;YACd,UAAU,EAAE,MAAM;SACnB,CAAC;QAEF,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;QACtC,MAAM,CAAC,OAAO,CAAC,IAAI,CACjB,IAAI,sBAAsB,CAAC;YACzB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,gBAAgB;YAC1B,MAAM,EAAE,kBAAkB;YAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,OAAO,EAAE,mBAAmB,CAAC,aAAa,CAAC;SAC5C,CAAC,CACH,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/storybook-addon",
|
|
3
|
-
"version": "0.0.0-feat-
|
|
3
|
+
"version": "0.0.0-feat-modern-3-0-20251201041706",
|
|
4
4
|
"description": "Storybook addon to consume remote module federated apps/components",
|
|
5
|
-
"type": "
|
|
5
|
+
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -49,21 +49,21 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@module-federation/
|
|
53
|
-
"@module-federation/
|
|
52
|
+
"@module-federation/sdk": "0.0.0-feat-modern-3-0-20251201041706",
|
|
53
|
+
"@module-federation/enhanced": "0.0.0-feat-modern-3-0-20251201041706"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"jest-fixed-jsdom": "^0.0.9",
|
|
57
|
-
"@rsbuild/core": "^1.
|
|
57
|
+
"@rsbuild/core": "^1.6.9",
|
|
58
58
|
"@storybook/node-logger": "7.6.20",
|
|
59
59
|
"@storybook/core": "^8.4.6",
|
|
60
60
|
"webpack": "5.94.0",
|
|
61
61
|
"webpack-virtual-modules": "0.6.2",
|
|
62
|
-
"@module-federation/utilities": "0.0.0-feat-
|
|
62
|
+
"@module-federation/utilities": "0.0.0-feat-modern-3-0-20251201041706"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@rsbuild/core": "^1.0.1",
|
|
66
|
-
"@module-federation/sdk": "0.0.0-feat-
|
|
66
|
+
"@module-federation/sdk": "0.0.0-feat-modern-3-0-20251201041706",
|
|
67
67
|
"@nx/react": ">= 16.0.0",
|
|
68
68
|
"@nx/webpack": ">= 16.0.0",
|
|
69
69
|
"@storybook/core": ">= 8.2.0",
|