Skip to content

Commit

Permalink
Merge pull request #1460 from evan-scott-zocdoc/disable-speedy-test
Browse files Browse the repository at this point in the history
disable speedy for non-production
  • Loading branch information
mxstbr committed Jan 29, 2018
2 parents 0edca9d + d980a70 commit 03cbfef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file. If a contri

## Unreleased


- Disable "speedy" mode for non-production cases (see [#1460](https://github.com/styled-components/styled-components/pull/1460))

## [v3.1.0] - 2018-01-29

Expand Down
2 changes: 1 addition & 1 deletion src/models/BrowserStyleSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ declare var __DEV__: ?string

const DISABLE_SPEEDY =
(typeof __DEV__ === 'boolean' && __DEV__) ||
process.env.NODE_ENV === 'development'
process.env.NODE_ENV !== 'production'

const COMPONENTS_PER_TAG = 40
const SPEEDY_COMPONENTS_PER_TAG = 1000 // insertRule allows more injections before a perf slowdown
Expand Down
Loading

0 comments on commit 03cbfef

Please sign in to comment.