storybook-builder-rsbuild 3.0.0-beta.4 → 3.0.0-beta.5
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_aedd462f063d47ed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_aedd462f063d47ed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_aedd462f063d47ed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_aedd462f063d47ed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_aedd462f063d47ed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_aedd462f063d47ed.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_aedd462f063d47ed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_aedd462f063d47ed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_aedd462f063d47ed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_aedd462f063d47ed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_aedd462f063d47ed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_aedd462f063d47ed.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./_node-chunks/chunk-
|
|
16
|
+
} from "./_node-chunks/chunk-5KUFPAAS.js";
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/.pnpm/pretty-hrtime@1.0.3/node_modules/pretty-hrtime/index.js
|
|
19
19
|
var require_pretty_hrtime = __commonJS({
|
|
@@ -535,6 +535,9 @@ var getAbsolutePath = (input) => dirname(__require.resolve(join2(input, "package
|
|
|
535
535
|
}))
|
|
536
536
|
].filter(Boolean),
|
|
537
537
|
tools: {
|
|
538
|
+
swc: (config) => {
|
|
539
|
+
config.env ??= {}, config.env.bugfixes = !0;
|
|
540
|
+
},
|
|
538
541
|
rspack: (config, { addRules, rspack: rspack2, mergeConfig }) => {
|
|
539
542
|
if (addRules({
|
|
540
543
|
test: /\.stories\.([tj])sx?$|(stories|story)\.mdx$/,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_aedd462f063d47ed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_aedd462f063d47ed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_aedd462f063d47ed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_aedd462f063d47ed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_aedd462f063d47ed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_aedd462f063d47ed.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-
|
|
12
|
+
import "../_node-chunks/chunk-5KUFPAAS.js";
|
|
13
13
|
|
|
14
14
|
// src/loaders/export-order-loader.ts
|
|
15
15
|
import assert from "node:assert";
|
package/dist/preview-preset.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_aedd462f063d47ed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_aedd462f063d47ed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_aedd462f063d47ed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_aedd462f063d47ed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_aedd462f063d47ed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_aedd462f063d47ed.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__require
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-5KUFPAAS.js";
|
|
15
15
|
|
|
16
16
|
// src/preview-preset.ts
|
|
17
17
|
var previewMainTemplate = () => __require.resolve("storybook-builder-rsbuild/templates/preview.ejs");
|