Skip to content

Commit

Permalink
chore: update rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Sep 19, 2024
1 parent ccb2b7c commit 022f14e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,32 @@
"@antv/path-util": "^2.0.15",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.2",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"benchmark": "^2.1.4",
"eslint": "^7.22.0",
"eslint-plugin-import": "^2.22.1",
"husky": "^5.2.0",
"jest": "^26.6.3",
"jest-electron": "^0.1.12",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^25.0.0",
"limit-size": "^0.1.4",
"lint-staged": "^15.2.10",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"prettier": "^3.3.3",
"rimraf": "^3.0.2",
"rollup": "^2.39.0",
"rollup-plugin-uglify": "^6.0.4",
"ts-jest": "^26.5.1",
"typescript": "~4.4.0"
"rollup": "^4.22.0",
"ts-jest": "^29.2.5",
"typescript": "^5"
},
"jest": {
"runner": "jest-electron/runner",
"testEnvironment": "jest-electron/environment",
"preset": "ts-jest",
"testEnvironment": "jsdom",
"collectCoverage": true,
"testRegex": "(/__tests__/.*\\.(test|spec))\\.ts$",
"collectCoverageFrom": [
Expand Down
11 changes: 8 additions & 3 deletions rollup.config.js → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { uglify } from 'rollup-plugin-uglify';
import resolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import commonjs from '@rollup/plugin-commonjs';
import terser from '@rollup/plugin-terser';

module.exports = [
export default [
{
input: 'src/index.ts',
output: {
Expand All @@ -12,6 +12,11 @@ module.exports = [
format: 'umd',
sourcemap: false,
},
plugins: [resolve(), typescript(), commonjs(), uglify()],
plugins: [
resolve(),
typescript(),
commonjs(),
terser(),
],
},
];

0 comments on commit 022f14e

Please sign in to comment.