diff --git a/config/rollup.config.js b/config/rollup.config.js index d15c928..212b5a5 100644 --- a/config/rollup.config.js +++ b/config/rollup.config.js @@ -1,16 +1,12 @@ import { resolve } from 'path'; import sourceMaps from 'rollup-plugin-sourcemaps'; import nodeResolve from '@rollup/plugin-node-resolve'; -import json from '@rollup/plugin-json'; import commonjs from '@rollup/plugin-commonjs'; import babel from 'rollup-plugin-babel'; import minify from 'rollup-plugin-babel-minify'; import pkg from '../package.json'; -/** - * @typedef {import('./types').RollupConfig} Config - */ /** * @typedef {import('./types').RollupPlugin} Plugin */ @@ -23,13 +19,12 @@ const dist = resolve(root, 'dist'); * * @type {string[]} */ -const external = Object.keys(pkg.peerDependencies) || []; +const external = []; /** * @type {Plugin[]} */ const plugins = /** @type {Plugin[]} */ ([ - json(), commonjs(), // Allow node_modules resolution. Use 'external' to control // which external modules to include in the bundle diff --git a/package-lock.json b/package-lock.json index b20d619..dc218e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,6 @@ "@babel/polyfill": "^7.12.1", "@babel/preset-env": "^7.23.9", "@rollup/plugin-commonjs": "^25.0.7", - "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^15.2.3", "@types/jest": "^29.5.12", "@types/node": "^20.11.21", @@ -2565,26 +2564,6 @@ } } }, - "node_modules/@rollup/plugin-json": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.1.0.tgz", - "integrity": "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^5.1.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, "node_modules/@rollup/plugin-node-resolve": { "version": "15.2.3", "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz", diff --git a/package.json b/package.json index 2b911ba..7b9a706 100644 --- a/package.json +++ b/package.json @@ -46,14 +46,11 @@ "lint:fix": "npm run lint -- --fix", "docs": "typedoc --options config/typedoc.json" }, - "dependencies": {}, - "peerDependencies": {}, "devDependencies": { "@babel/core": "^7.23.9", "@babel/polyfill": "^7.12.1", "@babel/preset-env": "^7.23.9", "@rollup/plugin-commonjs": "^25.0.7", - "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^15.2.3", "@types/jest": "^29.5.12", "@types/node": "^20.11.21",