Skip to content

Commit 7ce630e

Browse files
Update main.ts
1 parent 34a4b9b commit 7ce630e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dotcom-rendering/.storybook/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import path, { dirname } from 'node:path';
2-
import { fileURLToPath } from 'node:url';
1+
import path from 'node:path';
32
import { createRequire } from 'node:module';
43
import webpack from 'webpack';
54
import { saveStories } from '../scripts/gen-stories/get-stories.mjs';
@@ -8,7 +7,7 @@ import { svgr } from '../webpack/svg.cjs';
87
import process from 'node:process';
98

109
// ESM equivalent of __dirname
11-
const __dirname = dirname(fileURLToPath(import.meta.url));
10+
const __dirname = import.meta.dirname;
1211

1312
// Import CommonJS webpack config in ESM context
1413
const require = createRequire(import.meta.url);

0 commit comments

Comments
 (0)