diff --git a/package.json b/package.json index 878bc618..62a11802 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ ], "devDependencies": { "@rollup/plugin-commonjs": "22.0.2", + "@rollup/plugin-json": "6.1.0", "@rollup/plugin-node-resolve": "13.3.0", "@types/bun": "latest", "esbuild": "0.17.19", @@ -34,4 +35,4 @@ "peerDependencies": { "typescript": "^5.0.0" } -} \ No newline at end of file +} diff --git a/rollup.config.js b/rollup.config.js index 8ca37877..0069708a 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,9 +1,11 @@ import esbuild from 'rollup-plugin-esbuild'; import { nodeResolve } from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; +import json from '@rollup/plugin-json'; const input = './index.ts'; const plugins = [ + json(), nodeResolve({ preferBuiltins: false, browser: true }), commonjs(), esbuild({