Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/sentry/static/sentry/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import * as Router from 'react-router';
import ReactBootstrapModal from 'react-bootstrap/lib/Modal';
import JsCookie from 'js-cookie';

import './utils/emotion-setup';
import * as api from './api';
import * as il8n from './locale';
import plugins from './plugins';
Expand Down
9 changes: 9 additions & 0 deletions src/sentry/static/sentry/app/utils/emotion-setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* global process */

// NEEDS to be true for production because of performance
// But travis builds with NODE_ENV = production, so turn off speed when
// IS_PERCY is true (i.e. we are in TRAVIS and PERCY_TOKEN is set)
if (process.env.IS_PERCY) {
const sheet = require('emotion').sheet;
sheet.speedy(false);
}