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
The reason our build is failing is because we're piping our browserify bundle through uglify for JS minification. But now it won't run anymore because styletron 3.x is giving us non ES5 compatible js when importing it.
Styletron 2.x works fine in our build pipeline becuase importing it give's us ES5/Browser compatible code, that will run through uglify without any errors.
After upgrading to Styletron 3.x we we're experiencing Browserify build errors related to Styletron.
Background
I'm looking at https://github.com/rtsao/styletron/blob/master/packages/styletron-react/package.json and it has the following lines:
The reason our build is failing is because we're piping our browserify bundle through uglify for JS minification. But now it won't run anymore because styletron 3.x is giving us non ES5 compatible js when importing it.
Styletron 2.x works fine in our build pipeline becuase importing it give's us ES5/Browser compatible code, that will run through uglify without any errors.
Example code:
Result:
Gives me the contents of
node_modules/styletron-react/dist/index.js
Expected:
If i understood Browserify correctly, should I not get
node_modules/styletron-react/dist/browser.es5.js
?The text was updated successfully, but these errors were encountered: