babel-minify-webpack-plugin
babel-minify-webpack-plugin copied to clipboard
In README it is said “falsy value to remove all comments”. Not quite true
I have set {comments: null} (just a personal preference, null is a falsy value) in PluginOpts and it broke my build with the ERROR in unknown: Cannot read property 'test' of null. I was confused for quite some time untill I guessed to set comments explicitly to false and it worked.
Thanks. Good catch.
typeof null === object. So it applies a .test call thinking it's a regex. Would you like to send a PR?
@boopathi can I take this up?