@modern-js/storybook-builder 2.42.1 → 2.43.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/cjs/docgen/index.js
CHANGED
@@ -50,12 +50,12 @@ async function applyDocgenWebpack(chain, options) {
|
|
50
50
|
} else if (reactDocgen === "react-docgen") {
|
51
51
|
const loader = require.resolve("./loader");
|
52
52
|
const resolveOptions = chain.toConfig().resolve;
|
53
|
-
chain.module.rule(import_utils.CHAIN_ID.RULE.JS).use(
|
53
|
+
chain.module.rule(import_utils.CHAIN_ID.RULE.JS).use("react-docgen").loader(loader).options({
|
54
54
|
resolveOptions
|
55
55
|
}).after(import_utils.CHAIN_ID.USE.BABEL).after(import_utils.CHAIN_ID.USE.ESBUILD).after(import_utils.CHAIN_ID.USE.SWC).end();
|
56
56
|
const tsRuls = chain.module.rule(import_utils.CHAIN_ID.RULE.TS);
|
57
57
|
if (tsRuls.uses.values().length !== 0) {
|
58
|
-
tsRuls.use(
|
58
|
+
tsRuls.use("react-docgen").loader(loader).options({
|
59
59
|
resolveOptions
|
60
60
|
}).after(import_utils.CHAIN_ID.USE.TS).after(import_utils.CHAIN_ID.USE.ESBUILD).after(import_utils.CHAIN_ID.USE.SWC).end();
|
61
61
|
}
|
@@ -79,11 +79,6 @@ const pluginStorybook = (cwd, options) => {
|
|
79
79
|
var _config;
|
80
80
|
var _resolve;
|
81
81
|
(_resolve = (_config = config).resolve) !== null && _resolve !== void 0 ? _resolve : _config.resolve = {};
|
82
|
-
config.resolve.conditionNames = [
|
83
|
-
"require",
|
84
|
-
"node",
|
85
|
-
...config.resolve.conditionNames || []
|
86
|
-
];
|
87
82
|
config.resolve.fullySpecified = false;
|
88
83
|
await applyMdxLoader(config, options);
|
89
84
|
await applyCsfPlugin(config, options);
|
package/dist/esm/docgen/index.js
CHANGED
@@ -19,12 +19,12 @@ async function applyDocgenWebpack(chain, options) {
|
|
19
19
|
} else if (reactDocgen === "react-docgen") {
|
20
20
|
const loader = require.resolve("./loader");
|
21
21
|
const resolveOptions = chain.toConfig().resolve;
|
22
|
-
chain.module.rule(CHAIN_ID.RULE.JS).use(
|
22
|
+
chain.module.rule(CHAIN_ID.RULE.JS).use("react-docgen").loader(loader).options({
|
23
23
|
resolveOptions
|
24
24
|
}).after(CHAIN_ID.USE.BABEL).after(CHAIN_ID.USE.ESBUILD).after(CHAIN_ID.USE.SWC).end();
|
25
25
|
const tsRuls = chain.module.rule(CHAIN_ID.RULE.TS);
|
26
26
|
if (tsRuls.uses.values().length !== 0) {
|
27
|
-
tsRuls.use(
|
27
|
+
tsRuls.use("react-docgen").loader(loader).options({
|
28
28
|
resolveOptions
|
29
29
|
}).after(CHAIN_ID.USE.TS).after(CHAIN_ID.USE.ESBUILD).after(CHAIN_ID.USE.SWC).end();
|
30
30
|
}
|
@@ -69,11 +69,6 @@ const pluginStorybook = (cwd, options) => {
|
|
69
69
|
const modifyConfig = async (config) => {
|
70
70
|
var _a;
|
71
71
|
(_a = config.resolve) != null ? _a : config.resolve = {};
|
72
|
-
config.resolve.conditionNames = [
|
73
|
-
"require",
|
74
|
-
"node",
|
75
|
-
...config.resolve.conditionNames || []
|
76
|
-
];
|
77
72
|
config.resolve.fullySpecified = false;
|
78
73
|
await applyMdxLoader(config, options);
|
79
74
|
await applyCsfPlugin(config, options);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@modern-js/storybook-builder",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.43.0",
|
4
4
|
"description": "modern.js support for storybook",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -51,7 +51,7 @@
|
|
51
51
|
},
|
52
52
|
"license": "MIT",
|
53
53
|
"dependencies": {
|
54
|
-
"@rspack/plugin-react-refresh": "0.4.
|
54
|
+
"@rspack/plugin-react-refresh": "0.4.4",
|
55
55
|
"@storybook/components": "~7.6.1",
|
56
56
|
"@storybook/core-common": "~7.6.1",
|
57
57
|
"@storybook/csf-plugin": "~7.6.1",
|
@@ -71,11 +71,11 @@
|
|
71
71
|
"serve-static": "^1.14.1",
|
72
72
|
"tinypool": "^0.8.0",
|
73
73
|
"webpack-hot-middleware": "^2.25.4",
|
74
|
-
"@modern-js/
|
75
|
-
"@modern-js/builder": "2.
|
76
|
-
"@modern-js/
|
77
|
-
"@modern-js/
|
78
|
-
"@modern-js/
|
74
|
+
"@modern-js/builder": "2.43.0",
|
75
|
+
"@modern-js/builder-shared": "2.43.0",
|
76
|
+
"@modern-js/runtime": "2.43.0",
|
77
|
+
"@modern-js/core": "2.43.0",
|
78
|
+
"@modern-js/utils": "2.43.0"
|
79
79
|
},
|
80
80
|
"devDependencies": {
|
81
81
|
"@storybook/types": "~7.6.1",
|
@@ -83,14 +83,14 @@
|
|
83
83
|
"@types/serve-static": "^1.13.10",
|
84
84
|
"@types/webpack-hot-middleware": "^2.25.6",
|
85
85
|
"typescript": "^5.2.2",
|
86
|
-
"@modern-js/builder-rspack-provider": "2.
|
87
|
-
"@modern-js/
|
88
|
-
"@modern-js/
|
89
|
-
"@scripts/build": "2.
|
86
|
+
"@modern-js/builder-rspack-provider": "2.43.0",
|
87
|
+
"@modern-js/builder-webpack-provider": "2.43.0",
|
88
|
+
"@modern-js/core": "2.43.0",
|
89
|
+
"@scripts/build": "2.43.0"
|
90
90
|
},
|
91
91
|
"peerDependencies": {
|
92
|
-
"@modern-js/builder-webpack-provider": "^2.
|
93
|
-
"@modern-js/builder-rspack-provider": "^2.
|
92
|
+
"@modern-js/builder-webpack-provider": "^2.43.0",
|
93
|
+
"@modern-js/builder-rspack-provider": "^2.43.0"
|
94
94
|
},
|
95
95
|
"peerDependenciesMeta": {
|
96
96
|
"@modern-js/builder-webpack-provider": {
|