@modern-js/storybook-builder 0.0.0-nightly-20240219170634 → 0.0.0-nightly-20240221170640

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.
@@ -33,6 +33,7 @@ __export(docgen_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(docgen_exports);
35
35
  var import_utils = require("@modern-js/utils");
36
+ var import_shared = require("@rsbuild/shared");
36
37
  async function applyDocgenWebpack(chain, options) {
37
38
  const typescriptOptions = await options.presets.apply("typescript", {});
38
39
  const { reactDocgen, reactDocgenTypescriptOptions } = typescriptOptions || {};
@@ -50,14 +51,14 @@ async function applyDocgenWebpack(chain, options) {
50
51
  } else if (reactDocgen === "react-docgen") {
51
52
  const loader = require.resolve("./loader");
52
53
  const resolveOptions = chain.toConfig().resolve;
53
- chain.module.rule(import_utils.CHAIN_ID.RULE.JS).use("react-docgen").loader(loader).options({
54
+ chain.module.rule(import_shared.CHAIN_ID.RULE.JS).use("react-docgen").loader(loader).options({
54
55
  resolveOptions
55
- }).after(import_utils.CHAIN_ID.USE.BABEL).after(import_utils.CHAIN_ID.USE.ESBUILD).after(import_utils.CHAIN_ID.USE.SWC).end();
56
- const tsRuls = chain.module.rule(import_utils.CHAIN_ID.RULE.TS);
56
+ }).after(import_shared.CHAIN_ID.USE.BABEL).after(import_shared.CHAIN_ID.USE.ESBUILD).after(import_shared.CHAIN_ID.USE.SWC).end();
57
+ const tsRuls = chain.module.rule(import_shared.CHAIN_ID.RULE.TS);
57
58
  if (tsRuls.uses.values().length !== 0) {
58
59
  tsRuls.use("react-docgen").loader(loader).options({
59
60
  resolveOptions
60
- }).after(import_utils.CHAIN_ID.USE.TS).after(import_utils.CHAIN_ID.USE.ESBUILD).after(import_utils.CHAIN_ID.USE.SWC).end();
61
+ }).after(import_shared.CHAIN_ID.USE.TS).after(import_shared.CHAIN_ID.USE.ESBUILD).after(import_shared.CHAIN_ID.USE.SWC).end();
61
62
  }
62
63
  }
63
64
  }
@@ -1,4 +1,5 @@
1
- import { CHAIN_ID, logger } from "@modern-js/utils";
1
+ import { logger } from "@modern-js/utils";
2
+ import { CHAIN_ID } from "@rsbuild/shared";
2
3
  async function applyDocgenWebpack(chain, options) {
3
4
  const typescriptOptions = await options.presets.apply(
4
5
  "typescript",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/storybook-builder",
3
- "version": "0.0.0-nightly-20240219170634",
3
+ "version": "0.0.0-nightly-20240221170640",
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
- "@rsbuild/shared": "0.4.3",
54
+ "@rsbuild/shared": "0.4.4",
55
55
  "@rspack/plugin-react-refresh": "0.4.5",
56
56
  "@storybook/components": "~7.6.12",
57
57
  "@storybook/core-common": "~7.6.12",
@@ -72,10 +72,10 @@
72
72
  "serve-static": "^1.14.1",
73
73
  "tinypool": "^0.8.0",
74
74
  "webpack-hot-middleware": "^2.25.4",
75
- "@modern-js/uni-builder": "0.0.0-nightly-20240219170634",
76
- "@modern-js/runtime": "0.0.0-nightly-20240219170634",
77
- "@modern-js/utils": "0.0.0-nightly-20240219170634",
78
- "@modern-js/core": "0.0.0-nightly-20240219170634"
75
+ "@modern-js/uni-builder": "0.0.0-nightly-20240221170640",
76
+ "@modern-js/core": "0.0.0-nightly-20240221170640",
77
+ "@modern-js/runtime": "0.0.0-nightly-20240221170640",
78
+ "@modern-js/utils": "0.0.0-nightly-20240221170640"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@storybook/types": "~7.6.12",
@@ -83,8 +83,8 @@
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/core": "0.0.0-nightly-20240219170634",
87
- "@scripts/build": "0.0.0-nightly-20240219170634"
86
+ "@modern-js/core": "0.0.0-nightly-20240221170640",
87
+ "@scripts/build": "0.0.0-nightly-20240221170640"
88
88
  },
89
89
  "publishConfig": {
90
90
  "registry": "https://registry.npmjs.org/",