@storybook/builder-vite 11.0.0-beta.0 → 11.0.0-beta.1
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/_node-chunks/{chunk-T6VOWKXM.js → chunk-HGPZZJY5.js} +234 -1289
- package/dist/index.js +11 -10
- package/dist/preset.js +7 -7
- package/package.json +3 -5
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9iuamdqi3ma from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9iuamdqi3ma from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9iuamdqi3ma from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9iuamdqi3ma.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9iuamdqi3ma.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9iuamdqi3ma.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,8 +14,9 @@ import {
|
|
|
14
14
|
__toESM,
|
|
15
15
|
bundlerOptionsKey,
|
|
16
16
|
commonConfig,
|
|
17
|
-
normalize
|
|
18
|
-
|
|
17
|
+
normalize,
|
|
18
|
+
require_dist
|
|
19
|
+
} from "./_node-chunks/chunk-HGPZZJY5.js";
|
|
19
20
|
|
|
20
21
|
// ../../../node_modules/picocolors/picocolors.js
|
|
21
22
|
var require_picocolors = __commonJS({
|
|
@@ -87,8 +88,8 @@ import { fileURLToPath } from "node:url";
|
|
|
87
88
|
import { NoStatsForViteDevError } from "storybook/internal/server-errors";
|
|
88
89
|
|
|
89
90
|
// src/build.ts
|
|
91
|
+
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
90
92
|
import { logger as logger2 } from "storybook/internal/node-logger";
|
|
91
|
-
import { dedent } from "ts-dedent";
|
|
92
93
|
|
|
93
94
|
// src/logger.ts
|
|
94
95
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
@@ -174,7 +175,7 @@ async function build(options) {
|
|
|
174
175
|
})
|
|
175
176
|
});
|
|
176
177
|
let turbosnapPluginName = "rollup-plugin-turbosnap";
|
|
177
|
-
return finalConfig.plugins && await hasVitePlugins(finalConfig.plugins, [turbosnapPluginName]) && (logger2.warn(dedent`Found '${turbosnapPluginName}' which is now included by default in Storybook 8.
|
|
178
|
+
return finalConfig.plugins && await hasVitePlugins(finalConfig.plugins, [turbosnapPluginName]) && (logger2.warn(import_ts_dedent.dedent`Found '${turbosnapPluginName}' which is now included by default in Storybook 8.
|
|
178
179
|
Removing from your plugins list. Ensure you pass \`--stats-json\` to generate stats.
|
|
179
180
|
|
|
180
181
|
For more information, see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#turbosnap-vite-plugin-is-no-longer-needed`), finalConfig.plugins = await withoutVitePlugins(finalConfig.plugins, [turbosnapPluginName])), finalConfig.customLogger ??= await createViteLogger(), await viteBuild(finalConfig), findPlugin(
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9iuamdqi3ma from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9iuamdqi3ma from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9iuamdqi3ma from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9iuamdqi3ma.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9iuamdqi3ma.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9iuamdqi3ma.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
|
optimizeViteDeps,
|
|
14
14
|
staticDirs,
|
|
15
15
|
viteCorePlugins
|
|
16
|
-
} from "./_node-chunks/chunk-
|
|
16
|
+
} from "./_node-chunks/chunk-HGPZZJY5.js";
|
|
17
17
|
export {
|
|
18
18
|
optimizeViteDeps,
|
|
19
19
|
staticDirs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-vite",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.1",
|
|
4
4
|
"description": "A Storybook builder to dev and build with Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -46,9 +46,6 @@
|
|
|
46
46
|
"preset.js",
|
|
47
47
|
"!src/**/*"
|
|
48
48
|
],
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"ts-dedent": "^2.2.0"
|
|
51
|
-
},
|
|
52
49
|
"devDependencies": {
|
|
53
50
|
"@types/node": "^22.19.1",
|
|
54
51
|
"empathic": "^2.0.0",
|
|
@@ -57,10 +54,11 @@
|
|
|
57
54
|
"knitwork": "^1.1.0",
|
|
58
55
|
"magic-string": "^1.1.0",
|
|
59
56
|
"pathe": "^1.1.2",
|
|
57
|
+
"ts-dedent": "^2.2.0",
|
|
60
58
|
"vite": "^7.0.4"
|
|
61
59
|
},
|
|
62
60
|
"peerDependencies": {
|
|
63
|
-
"storybook": "^11.0.0-beta.
|
|
61
|
+
"storybook": "^11.0.0-beta.1",
|
|
64
62
|
"vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
|
|
65
63
|
},
|
|
66
64
|
"publishConfig": {
|