介绍
gz
br
原理分析
简单实践
// package.json
"source": "index.js",
"main": "dist/index.js",
"exports": "dist/index.modern.js",
"module": "dist/index.module.js",
"unpkg": "dist/index.umd.js",
"scripts": {
"build": "microbundle",
"dev": "microbundle watch"
},
ts
tsconfig.json中配置