Skip to content

Commit

Permalink
build: use rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Feb 16, 2021
1 parent 578f8d4 commit 737e690
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 89 deletions.
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"clean": "rimraf -rf lib esm dist",
"lint-staged": "lint-staged",
"test": "jest",
"build:umd": "rimraf ./dist && webpack --config webpack.config.js --mode production && npm run size",
"build:umd": "rimraf ./dist && rollup -c && npm run size",
"build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
"build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
"build": "npm run build:cjs && npm run build:esm && npm run build:umd",
Expand All @@ -36,14 +36,9 @@
"@antplot/graphics"
],
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/plugin-transform-runtime": "^7.12.15",
"@babel/preset-env": "^7.12.16",
"@babel/runtime": "^7.12.13",
"@commitlint/cli": "^11.0.0",
"@types/jest": "^26.0.20",
"@types/lodash": "^4.14.168",
"babel-loader": "^8.2.2",
"husky": "^5.0.9",
"jest": "^26.6.3",
"jest-electron": "^0.1.11",
Expand All @@ -60,10 +55,7 @@
"ts-jest": "^26.5.1",
"ts-loader": "^8.0.17",
"ts-node": "^9.1.1",
"typescript": "^4.1.5",
"webpack": "^5.22.0",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-cli": "^4.5.0"
"typescript": "^4.1.5"
},
"jest": {
"runner": "jest-electron/runner",
Expand Down
4 changes: 4 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ module.exports = [{
name: 'Graphics',
format: 'umd',
sourcemap: false,
globals: {
lodash: '_',
},
},
external:['lodash'],
plugins: [
resolve(),
typescript(),
Expand Down
79 changes: 0 additions & 79 deletions webpack.config.js

This file was deleted.

0 comments on commit 737e690

Please sign in to comment.