1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-10 10:16:20 +01:00
Pinafore-Web-Client-Frontend/routes/_utils/database/database.js
2018-01-21 17:18:56 -08:00

10 lines
310 B
JavaScript

import worker from 'workerize-loader!./databaseInsideWorker'
import * as databaseInsideWorker from './databaseInsideWorker'
// workerize-loader causes weirdness during development
let database = process.browser && process.env.NODE_ENV === 'production' ? worker() : databaseInsideWorker
export {
database
}