Skip to content

Commit 31ad06a

Browse files
mellyeliunecolas
authored andcommitted
Fix path resolve for rollup config
Close #316
1 parent d745d1d commit 31ad06a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/react-strict-dom/tools/rollup.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
import { babel } from '@rollup/plugin-babel';
99
import commonjs from '@rollup/plugin-commonjs';
1010
import resolve from '@rollup/plugin-node-resolve';
11-
import path from 'path';
11+
import path, { dirname } from 'path';
12+
import { fileURLToPath } from 'url';
1213

13-
const __dirname = import.meta.dirname;
14+
const __dirname = dirname(fileURLToPath(import.meta.url));
1415

1516
const babelPlugin = babel({
1617
babelHelpers: 'bundled',

0 commit comments

Comments
 (0)