mesh.js icon indicating copy to clipboard operation
mesh.js copied to clipboard

build: use rollup for better tree-shaking

Open pd4d10 opened this issue 5 years ago • 0 comments

This PR uses rollup instead of webpack to build production bundles:

  • [x] ESM bundle (dist/mesh.esm.js): For ES Module with tree-shaking
  • [x] UMD bundle (dist/mesh.js): For CommonJS, AMD and global variable pattern
  • [x] minified UMD bundle (dist/mesh.min.js): For CDN host

The other npm scripts (such as npm start) are kept as is.

pd4d10 avatar Oct 12 '20 12:10 pd4d10