@storybook/builder-vite 10.5.0-alpha.0 → 10.5.0-alpha.2
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_8g1bqoqna25 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8g1bqoqna25 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8g1bqoqna25 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8g1bqoqna25.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8g1bqoqna25.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8g1bqoqna25.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,13 @@ type StorybookConfigVite = {
|
|
|
12
12
|
type BuilderOptions = {
|
|
13
13
|
/** Path to `vite.config` file, relative to `process.cwd()`. */
|
|
14
14
|
viteConfigPath?: string;
|
|
15
|
+
/**
|
|
16
|
+
* How Vite loads the config file. Equivalent to Vite's `--configLoader` CLI flag and the
|
|
17
|
+
* `configLoader` option of `loadConfigFromFile`.
|
|
18
|
+
*
|
|
19
|
+
* Requires Vite 6.1.0 or higher. On older Vite versions this option is silently ignored.
|
|
20
|
+
*/
|
|
21
|
+
configLoader?: 'bundle' | 'runner' | 'native';
|
|
15
22
|
};
|
|
16
23
|
|
|
17
24
|
/** Recursively removes all plugins with the names given Resolves async plugins */
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8g1bqoqna25 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8g1bqoqna25 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8g1bqoqna25 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8g1bqoqna25.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8g1bqoqna25.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8g1bqoqna25.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
normalize,
|
|
25
25
|
relative,
|
|
26
26
|
viteCorePlugins
|
|
27
|
-
} from "./_node-chunks/chunk-
|
|
27
|
+
} from "./_node-chunks/chunk-W6C5W4GS.js";
|
|
28
28
|
|
|
29
29
|
// ../../../node_modules/picocolors/picocolors.js
|
|
30
30
|
var require_picocolors = __commonJS({
|
|
@@ -1434,7 +1434,14 @@ var configEnvServe = {
|
|
|
1434
1434
|
isSsrBuild: !1
|
|
1435
1435
|
};
|
|
1436
1436
|
async function commonConfig(options, _type) {
|
|
1437
|
-
let configEnv = _type === "development" ? configEnvServe : configEnvBuild, { loadConfigFromFile, mergeConfig } = await import("vite"), { viteConfigPath } = await getBuilderOptions(options), projectRoot = resolve2(options.configDir, ".."), { config: { build: buildProperty = void 0, ...userConfig } = {} } = await loadConfigFromFile(
|
|
1437
|
+
let configEnv = _type === "development" ? configEnvServe : configEnvBuild, { loadConfigFromFile, mergeConfig } = await import("vite"), { viteConfigPath, configLoader } = await getBuilderOptions(options), projectRoot = resolve2(options.configDir, ".."), { config: { build: buildProperty = void 0, ...userConfig } = {} } = await loadConfigFromFile(
|
|
1438
|
+
configEnv,
|
|
1439
|
+
viteConfigPath,
|
|
1440
|
+
projectRoot,
|
|
1441
|
+
void 0,
|
|
1442
|
+
void 0,
|
|
1443
|
+
configLoader
|
|
1444
|
+
) ?? {}, sbConfig = {
|
|
1438
1445
|
configFile: !1,
|
|
1439
1446
|
plugins: await pluginConfig(options),
|
|
1440
1447
|
root: projectRoot,
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8g1bqoqna25 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8g1bqoqna25 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8g1bqoqna25 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8g1bqoqna25.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8g1bqoqna25.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8g1bqoqna25.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_0l53r3mh1e8l.createRequire(import.meta.url)
|
|
|
12
12
|
import {
|
|
13
13
|
optimizeViteDeps,
|
|
14
14
|
viteCorePlugins
|
|
15
|
-
} from "./_node-chunks/chunk-
|
|
15
|
+
} from "./_node-chunks/chunk-W6C5W4GS.js";
|
|
16
16
|
export {
|
|
17
17
|
optimizeViteDeps,
|
|
18
18
|
viteCorePlugins
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-vite",
|
|
3
|
-
"version": "10.5.0-alpha.
|
|
3
|
+
"version": "10.5.0-alpha.2",
|
|
4
4
|
"description": "A Storybook builder to dev and build with Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"!src/**/*"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@storybook/csf-plugin": "10.5.0-alpha.
|
|
50
|
+
"@storybook/csf-plugin": "10.5.0-alpha.2",
|
|
51
51
|
"ts-dedent": "^2.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"vite": "^7.0.4"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"storybook": "^10.5.0-alpha.
|
|
65
|
+
"storybook": "^10.5.0-alpha.2",
|
|
66
66
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|