Skip to content

Commit

Permalink
feat(*): allow bundler to optimize filesize
Browse files Browse the repository at this point in the history
The library is side effect free and it should hint this to
all common bundler like rollup, webpack and parcel, so
that they can easily optimize for that.

See: https://webpack.js.org/guides/tree-shaking/
  • Loading branch information
garthenweb committed Oct 6, 2019
1 parent 478f450 commit fd7001d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
"start": "rm -rf ./.cache && parcel ./examples/index.html --out-dir='examples-dist'",
"precompile": "rm -rf dist",
Expand Down

0 comments on commit fd7001d

Please sign in to comment.