We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa4f62 commit 96af2e7Copy full SHA for 96af2e7
rollup.config.js rollup.config.mjsrollup.config.js renamed to rollup.config.mjs
@@ -3,7 +3,12 @@ import commonjs from '@rollup/plugin-commonjs';
3
import {nodeResolve} from '@rollup/plugin-node-resolve';
4
import json from '@rollup/plugin-json';
5
import terser from '@rollup/plugin-terser';
6
-import pkg from './package.json' assert {type: 'json'};
+import { readFile } from 'fs/promises';
7
+const pkg = JSON.parse(
8
+ await readFile(
9
+ new URL('./package.json', import.meta.url)
10
+ )
11
+);
12
13
let dependencies = '';
14
0 commit comments