-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non minified distribution is broken #1355
Comments
That is a UMD bundle that's meant to be used in a |
rollup.config.js:52 should replace process.env.NODE_ENV prod && replace({
'process.env.NODE_ENV': JSON.stringify(prod ? 'production' : 'development'),
}), Invocation of replace looks ok to me, and condition I found out that we could have newer version in package.json:124 "rollup-plugin-replace": "^1.1.1", however when using version 2.0.0 of this plugin problem is still present. Update |
Ohh it's because the We should have that replace always in there, unless it's the |
Right, yes, how could I missed that, PR coming in a minute, thanks! |
Version
styled-components: 2.2.4
babel-plugin-styled-components: 1.3.0
Reproduction
https://www.webpackbin.com/bins/-KeeZCr0xKfutOfOujxN
https://codesandbox.io/s/rkmNRByE4
Steps to reproduce
cd /tmp
mkdir project1
cd project1/
/tmp/project1
yarn init -y
yarn add styled-components
Expected Behavior
Distribution will not contain
process.env.NODE_ENV
Actual Behavior
Several
process.env.NODE_ENV
statementsThe text was updated successfully, but these errors were encountered: