mirror of
https://github.com/nolanlawson/pinafore
synced 2025-01-10 10:16:20 +01:00
10 lines
310 B
JavaScript
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
|
|
} |