Skip to content

Commit 3b88be9

Browse files
committed
feat(build): use bili
1 parent aaae2ad commit 3b88be9

File tree

3 files changed

+228
-55
lines changed

3 files changed

+228
-55
lines changed

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "vue-router-prefetch",
33
"version": "1.0.0",
44
"description": "Prefetch the route components of router-link in viewport.",
5-
"main": "dist/vue-router-prefetch.cjs.js",
6-
"module": "dist/vue-router-prefetch.esm.js",
5+
"main": "dist/index.js",
6+
"module": "dist/index.mjs",
77
"files": [
88
"dist"
99
],
1010
"scripts": {
1111
"test": "npm run lint",
1212
"lint": "xo",
13-
"build": "rollup -c",
13+
"build": "bili --format esm,cjs --minify --minimal",
1414
"prepublishOnly": "npm run build",
1515
"example": "poi example/index.js --serve --jsx vue",
1616
"commit": "git-cz"
@@ -22,6 +22,7 @@
2222
"author": "egoist<[email protected]>",
2323
"license": "MIT",
2424
"devDependencies": {
25+
"bili": "^4.0.9",
2526
"commitizen": "^3.0.5",
2627
"cz-conventional-changelog": "^2.1.0",
2728
"eslint-config-prettier": "^3.3.0",
@@ -32,10 +33,6 @@
3233
"lint-staged": "^7.2.0",
3334
"poi": "^12.4.6",
3435
"prettier": "^1.15.2",
35-
"rollup": "^1.1.2",
36-
"rollup-plugin-buble": "^0.19.6",
37-
"rollup-plugin-node-resolve": "^4.0.0",
38-
"rollup-plugin-terser": "^4.0.2",
3936
"semantic-release": "^15.13.3",
4037
"vue": "^2.5.22",
4138
"vue-router": "^3.0.2",

rollup.config.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)