Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
In the output code after building there is a hack in the code which includes the time of compilation, which causes the whole file to be modified, which when code-splitting is bad for caching.
Relevant output code (see LAST_BUILD):
if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","LAST_BUILD":"2017-09-06T07:53:58.689Z"}) && "development" === 'test') {
// Temporary hack.
// Inline requires don't work well with Jest:
// https://github.com/facebook/react/issues/7240
// Remove the inline requires when we don't need them anymore:
// https://github.com/facebook/react/pull/7178
ReactComponentTreeHook = __webpack_require__("./node_modules/react/lib/ReactComponentTreeHook.js");
}
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/ebsrpraL/).
Build project with react and react-dom in development or production, check diff between two supposedly identical builds.
What is the expected behavior?
The two builds outputs should be identical if no modifications have been made.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
15.6.1