build(@vant/lazyload): using rollup to bundle (#9598)

This commit is contained in:
neverland
2021-09-30 11:19:38 +08:00
committed by GitHub
parent 75958887c2
commit 091b5c7ff8
5 changed files with 146 additions and 1041 deletions
+8 -7
View File
@@ -14,20 +14,21 @@
"types"
],
"scripts": {
"dev": "babel src --out-dir dist/esm --watch",
"build": "babel src --out-dir dist/esm && BABEL_MODULE=commonjs babel src --out-dir dist/cjs",
"dev": "rollup --config rollup.config.js --watch",
"build": "rollup --config rollup.config.js",
"release": "npm run build && release-it"
},
"license": "MIT",
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-lazyload",
"devDependencies": {
"@babel/cli": "^7.12.8",
"@babel/core": "^7.12.9",
"release-it": "^14.2.2"
},
"dependencies": {
"@vant/use": "^1.3.2"
},
"devDependencies": {
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-node-resolve": "^10.0.0",
"release-it": "^14.2.2",
"rollup": "^2.33.3"
},
"release-it": {
"git": {
"tag": false,