Skip to content

Conversation

@fabiosantoscode
Copy link
Contributor

The sideEffects directive can help module bundlers remove unused imports. By asserting that this package doesn't have side effects, it's safe to remove import "extra-array/*" and its contents, if none of the imports are used.

Here's some docs, in case you aren't familiar. It's in the webpack website, but bundlers in general adopt this convention.

https://webpack.js.org/guides/tree-shaking/

Thanks for this project. I'll work a lot on arrays, and I like that so many utilities are available in one place!

The sideEffects directive can help module bundlers remove unused imports. By asserting this package doesn't have side effects, it's safe to remove `import "extra-array"` and its contents, if none of the imports are used. Here's an explanatory document in case you aren't familiar. It's in the webpack documentation, but bundlers in general adopt this convention. https://webpack.js.org/guides/tree-shaking/ Thanks for this project, I'll work a lot on arrays, and I like that so many utilities are available in one place!
@wolfram77 wolfram77 merged commit b1d22f4 into nodef:master Apr 13, 2021
@wolfram77
Copy link
Member

Yes, i was not aware of it. Thanks. I should go update this in a few other places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants