We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a4b9b commit 7ce630eCopy full SHA for 7ce630e
dotcom-rendering/.storybook/main.ts
@@ -1,5 +1,4 @@
1
-import path, { dirname } from 'node:path';
2
-import { fileURLToPath } from 'node:url';
+import path from 'node:path';
3
import { createRequire } from 'node:module';
4
import webpack from 'webpack';
5
import { saveStories } from '../scripts/gen-stories/get-stories.mjs';
@@ -8,7 +7,7 @@ import { svgr } from '../webpack/svg.cjs';
8
7
import process from 'node:process';
9
10
// ESM equivalent of __dirname
11
-const __dirname = dirname(fileURLToPath(import.meta.url));
+const __dirname = import.meta.dirname;
12
13
// Import CommonJS webpack config in ESM context
14
const require = createRequire(import.meta.url);
0 commit comments