We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b6c2df commit ebbbbe9Copy full SHA for ebbbbe9
rollup.config.mjs
@@ -6,7 +6,11 @@ import commonjs from "@rollup/plugin-commonjs";
6
// import babelRuntime from "@rollup/plugin-transform-runtime"
7
import json from "@rollup/plugin-json";
8
import replace from "@rollup/plugin-replace";
9
-import pkg from "./package.json" assert { type: "json" };
+import { readFileSync } from "fs";
10
+
11
+const pkg = JSON.parse(
12
+ readFileSync(new URL("./package.json", import.meta.url), "utf8")
13
+);
14
15
export default {
16
input: "src/index.js",
0 commit comments