Commit e414653b authored by Robert Knight's avatar Robert Knight

Do not include preact/debug in production builds

parent 2b24c879
/* global process */
import { jsonConfigsFrom } from '../shared/settings'; import { jsonConfigsFrom } from '../shared/settings';
import crossOriginRPC from './cross-origin-rpc.js'; import crossOriginRPC from './cross-origin-rpc.js';
...@@ -37,7 +39,9 @@ import angularToastr from 'angular-toastr'; ...@@ -37,7 +39,9 @@ import angularToastr from 'angular-toastr';
import 'focus-visible'; import 'focus-visible';
// Enable debugging checks for Preact. // Enable debugging checks for Preact.
import 'preact/debug'; if (process.env.NODE_ENV !== 'production') {
require('preact/debug');
}
import wrapReactComponent from './util/wrap-react-component'; import wrapReactComponent from './util/wrap-react-component';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment