Closed mohitgupta8888 closed 6 years ago
@mohitgupta8888 Thanks for putting this PR together! Can you explain a bit further the problem you encountered and that this fixes? Thanks!
@jasonkuhrt Issue occurs with the minified bundled file. When I set the process.env.NODE_ENV variable to "production", and use babel-minify to minify the compiled file and it crashes in the browser. Screenshot Attached.
Made a change that should cover this in https://github.com/littlebits/react-popover/commit/2cd758288b3d8ca017f2421db843eeee034cb292.
Old syntax was giving error while building the code in production mode.