I'm using create-react-app and wherever there's JavaScript in a tagged template literal and it's commented out (like in the example below), it will still run (it will apply the reset, in this case).
Why does that happen and how can it be prevented?
import { createGlobalStyle } from "styled-components";
import reset from "styled-reset";
export default createGlobalStyle`
/* the following line will run even though it's commented out */
/* ${reset} */
`
It seems that this is an issue with Webpack/Babel configuration in create-react-app? Because I can't replicate that on this sandbox:
https://codesandbox.io/s/p7qx411xvq
Using: styled-components@4.2.0