diff --git a/rollup.config.js b/rollup.config.js index aefd5c5..6e28807 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,6 +1,8 @@ +import { createRequire } from 'node:module'; import babel from '@rollup/plugin-babel'; import { nodeResolve } from '@rollup/plugin-node-resolve'; -import pkg from './package.json'; + +const pkg = createRequire(import.meta.url)('./package.json'); const extensions = [ '.ts',