Yes.
This is about a clean new project.
node -v: 8.9.4npm -v: 5.6.0npm ls react-scripts: 1.1.1create-react-app minification-test && cd minification-testApp.js withimport React, { Component } from 'react';
class App extends Component {
render() {
const test = `<Script></Script>`;
return (
<p>{test}</p>
);
}
}
export default App;
npm run buildserve -s build (npm install serve -g if needed)I expect to see <Script></Script> on the screen.
I see <Script></script> – the second script is lowercase.
npm start:

Build:

This looks like an UglifyJS issue, it is reproducible in UglifyJS playground with following code:
const test = `<Script></Script>`;
and inline_script option enabled.
Could you please file this issue with Uglify and link back here? Thank you!
Same issue here. I'm using react-chartkick that requires charts.js Guess this is related
No charting library found for t Removing Uglify inside webpack.config.prod.js is temp workaround for me.
Should we disable inline_script for now? What are those implications?
Can you please try react-scripts@2 and see if it persists in the beta?
Linking the issue: https://github.com/mishoo/UglifyJS2/issues/2989.
FYI: mishoo/UglifyJS2#2991
Looks like this was fixed in Uglify. It'll work its way in here eventually.
Thanks for the report!
Most helpful comment
This looks like an UglifyJS issue, it is reproducible in UglifyJS playground with following code:
and
inline_scriptoption enabled.