File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1717 ],
1818 "scripts" : {
1919 "prepublishOnly" : " run-s build" ,
20- "build:prod" : " microbundle --target node -f cjs --compress --globals '__DEV__=false' -o dist/react-ssr-prepass.production.min.js" ,
21- "build:dev" : " microbundle --target node -f cjs --no-compress --globals '__DEV__=true' -o dist/react-ssr-prepass.development.js" ,
20+ "build:prod" : " microbundle --target node -f cjs --compress --define '__DEV__=false' -o dist/react-ssr-prepass.production.min.js" ,
21+ "build:dev" : " microbundle --target node -f cjs --no-compress --define '__DEV__=true' -o dist/react-ssr-prepass.development.js" ,
2222 "build" : " run-p build:prod build:dev" ,
2323 "test" : " jest" ,
2424 "flow" : " flow"
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ import {
6060
6161// Time in ms after which the otherwise synchronous visitor yields so that
6262// the event loop is not interrupted for too long
63- const YIELD_AFTER_MS = __DEV__ ? 20 : 5
63+ const YIELD_AFTER_MS = process . env . NODE_ENV !== 'production' ? 20 : 5
6464
6565const render = (
6666 type : ComponentType < DefaultProps > & ComponentStatics ,
You can’t perform that action at this time.
0 commit comments