Templarian / MaterialDesign-JS

Dist for Material Design Icons JS/TypeScript
Other
161 stars 18 forks source link

fix: Add `exports` to `package.json` #29

Open susnux opened 7 months ago

susnux commented 7 months ago

Otherwise when using Node > 16 and some bundlers (e.g. webpack 5) no treeshaking will happen. As the wrong entry point (main) will be used.

susnux commented 7 months ago

BTW this saves us ~3MB of JS assets because of tree shaking.