Skip to content

Commit d2eee5a

Browse files
ankurpjavivelasco
authored andcommitted
Add support for treeshaking (react-toolbox#1423)
According to Rollup guide adding `module` field in package.json helps tree shaking aware tools like webpack 2 or rollup import the ES6 modules directly to use the tree shaking feature and reduce the bundle size.
1 parent 8df122a commit d2eee5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"homepage": "http://www.react-toolbox.com",
55
"version": "2.0.0-beta.8",
66
"main": "./lib",
7+
"module": "./components",
78
"author": {
89
"email": "[email protected]",
910
"name": "Javier Velasco Arjona",

0 commit comments

Comments
 (0)