You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I import { isEmail } from 'validator', It still shows the entire lib with no tree shaking when using webpack 4 for my production build. Could this be solved by adding "sideEffects": false to the package.json as per webpacks docs?
The text was updated successfully, but these errors were encountered:
@chriso -- Are there any files you're aware of which cause side effects (eg: assign to global variables, etc.)? I'm not seeing anything, but I can look again.
If the modules really are all pure, then we can do what the original user suggested and enable tree shaking by adding "sideEffects": false to the package.json, and I'll submit a PR.
When I
import { isEmail } from 'validator'
, It still shows the entirelib
with no tree shaking when using webpack 4 for my production build. Could this be solved by adding"sideEffects": false
to thepackage.json
as per webpacks docs?The text was updated successfully, but these errors were encountered: