@storybook/preset-react-webpack 10.6.0-alpha.7 → 10.6.0-alpha.9
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,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qdnhdwcwxlm from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qdnhdwcwxlm from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qdnhdwcwxlm from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qdnhdwcwxlm.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qdnhdwcwxlm.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qdnhdwcwxlm.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qdnhdwcwxlm from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qdnhdwcwxlm from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qdnhdwcwxlm from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qdnhdwcwxlm.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qdnhdwcwxlm.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qdnhdwcwxlm.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qdnhdwcwxlm from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qdnhdwcwxlm from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qdnhdwcwxlm from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qdnhdwcwxlm.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qdnhdwcwxlm.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qdnhdwcwxlm.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_qdnhdwcwxlm from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_qdnhdwcwxlm from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_qdnhdwcwxlm from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_qdnhdwcwxlm.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_qdnhdwcwxlm.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_qdnhdwcwxlm.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_41ars5ncq44.createRequire(import.meta.url);
|
|
|
12
12
|
|
|
13
13
|
// src/loaders/react-docgen-loader.ts
|
|
14
14
|
import { dirname } from "node:path";
|
|
15
|
-
import { findTsconfigPathForFile } from "storybook/internal/common";
|
|
15
|
+
import { findTsconfigPathForFile, getTsconfigPathsBaseDir } from "storybook/internal/common";
|
|
16
16
|
import { logger } from "storybook/internal/node-logger";
|
|
17
17
|
import MagicString from "magic-string";
|
|
18
18
|
import {
|
|
@@ -171,11 +171,11 @@ function createTsconfigMatchPath(filePath) {
|
|
|
171
171
|
if (tsconfig.resultType !== "success")
|
|
172
172
|
return;
|
|
173
173
|
logger.debug("Using tsconfig paths for react-docgen");
|
|
174
|
-
let matchPath = TsconfigPaths.createMatchPath(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"main"
|
|
178
|
-
|
|
174
|
+
let matchPath = TsconfigPaths.createMatchPath(
|
|
175
|
+
getTsconfigPathsBaseDir(tsconfig.configFileAbsolutePath),
|
|
176
|
+
tsconfig.paths,
|
|
177
|
+
["browser", "module", "main"]
|
|
178
|
+
);
|
|
179
179
|
return matchPathByTsconfigPath.set(tsconfigPath, matchPath), matchPath;
|
|
180
180
|
}
|
|
181
181
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/preset-react-webpack",
|
|
3
|
-
"version": "10.6.0-alpha.
|
|
3
|
+
"version": "10.6.0-alpha.9",
|
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"!src/**/*"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@storybook/core-webpack": "10.6.0-alpha.
|
|
42
|
+
"@storybook/core-webpack": "10.6.0-alpha.9",
|
|
43
43
|
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.0c3f3b7.0",
|
|
44
44
|
"@types/semver": "^7.7.1",
|
|
45
45
|
"magic-string": "^1.1.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
59
59
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
60
|
-
"storybook": "^10.6.0-alpha.
|
|
60
|
+
"storybook": "^10.6.0-alpha.9"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"typescript": {
|