2018-01-22 01:18:56 +00:00
|
|
|
import worker from 'workerize-loader!./databaseInsideWorker'
|
2018-01-19 17:18:14 +00:00
|
|
|
|
2018-01-22 01:18:56 +00:00
|
|
|
import * as databaseInsideWorker from './databaseInsideWorker'
|
2018-01-19 17:18:14 +00:00
|
|
|
|
2018-01-22 01:18:56 +00:00
|
|
|
// workerize-loader causes weirdness during development
|
|
|
|
let database = process.browser && process.env.NODE_ENV === 'production' ? worker() : databaseInsideWorker
|
2018-01-19 17:18:14 +00:00
|
|
|
|
2018-01-22 01:18:56 +00:00
|
|
|
export {
|
|
|
|
database
|
2018-01-19 17:18:14 +00:00
|
|
|
}
|