Skip to content

Commit 68c638f

Browse files
committed
fix(storybook-builder): normalize paths for Windows
1 parent 6eaa56a commit 68c638f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/storybook-builder/src/rollup-plugin-prebundle-modules.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { stringifyProcessEnvs } from '@storybook/core-common';
22
import { build } from 'esbuild';
33
import { remove } from 'fs-extra';
4-
import { join } from 'path';
4+
import { join, normalize } from 'path';
55
import type { Plugin } from 'rollup';
66
import { esbuildPluginCommonjsNamedExports } from './esbuild-plugin-commonjs-named-exports.js';
77
import { getNodeModuleDir } from './get-node-module-dir.js';
88

9-
export const PREBUNDLED_MODULES_DIR = 'node_modules/.prebundled_modules';
9+
export const PREBUNDLED_MODULES_DIR = normalize('node_modules/.prebundled_modules');
1010

1111
export function rollupPluginPrebundleModules(env: Record<string, string>): Plugin {
1212
const modulePaths: Record<string, string> = {};

0 commit comments

Comments
 (0)