diff --git a/package-lock.json b/package-lock.json index 0231b0c..757ff4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "diskernet", - "version": "2.6.0", + "version": "2.4.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "diskernet", - "version": "2.6.0", + "version": "2.4.11", "license": "AGPL-3.0", "dependencies": { "chrome-launcher": "latest", @@ -26,6 +26,7 @@ "diskernet": "build/22120.js" }, "devDependencies": { + "@rollup/plugin-terser": "^0.3.0", "eslint": "^8.4.1", "esm": "^3.2.25", "nexe": "^1.1.6", @@ -193,6 +194,28 @@ "node": ">= 8" } }, + "node_modules/@rollup/plugin-terser": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.3.0.tgz", + "integrity": "sha512-mYTkNW9KjOscS/3QWU5LfOKsR3/fAAVDaqcAe2TZ7ng6pN46f+C7FOZbITuIW/neA+PhcjoKl7yMyB3XcmA4gw==", + "dev": true, + "dependencies": { + "serialize-javascript": "^6.0.0", + "smob": "^0.0.6", + "terser": "^5.15.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^2.x || ^3.x" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, "node_modules/@types/eslint": { "version": "8.4.10", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.10.tgz", @@ -6285,6 +6308,12 @@ "semver": "bin/semver.js" } }, + "node_modules/smob": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/smob/-/smob-0.0.6.tgz", + "integrity": "sha512-V21+XeNni+tTyiST1MHsa84AQhT1aFZipzPpOFAVB8DkHzwJyjjAmt9bgwnuZiZWnIbMo2duE29wybxv/7HWUw==", + "dev": true + }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", diff --git a/rollup.config.mjs b/rollup.config.mjs index c25f30d..de5bdad 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,6 +1,6 @@ import path from 'path'; //import commonjs from '@rollup/plugin-commonjs'; -//import { terser } from "rollup-plugin-terser"; +import { terser } from "@rollup/plugin-terser"; export default { input: path.resolve('src', 'app.js'), @@ -9,10 +9,8 @@ export default { format: 'es', generatedCode: 'es2015' }, - /* plugins: [ //commonjs(), terser() ] - */ };