Skip to content

Commit

Permalink
chore: create JSON import that's compatible with node 19 and 20
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Aug 30, 2024
1 parent bb0a1ce commit da14d3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import typescript from "@rollup/plugin-typescript";
import replace from "@rollup/plugin-replace";

import pkg from "./package.json" with { type: "json" };
import { createRequire } from "module";
const require = createRequire(import.meta.url);
const pkg = require("./package.json");

const nodeConfig = {
input: "index.ts",
Expand Down

0 comments on commit da14d3c

Please sign in to comment.