介绍

gz

br

原理分析

简单实践

  1. // package.json
  2. "source": "index.js",
  3. "main": "dist/index.js",
  4. "exports": "dist/index.modern.js",
  5. "module": "dist/index.module.js",
  6. "unpkg": "dist/index.umd.js",
  7. "scripts": {
  8. "build": "microbundle",
  9. "dev": "microbundle watch"
  10. },

image.pngimage.png

ts

tsconfig.json中配置