-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
27 lines (24 loc) · 701 Bytes
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import globals from '@jbrowse/core/ReExports/list'
import { createRollupConfig } from '@jbrowse/development-tools'
function stringToBoolean(string) {
if (string === undefined) {
return undefined
}
if (string === 'true') {
return true
}
if (string === 'false') {
return false
}
throw new Error('unknown boolean string')
}
const includeUMD = stringToBoolean(process.env.JB_UMD)
const includeCJS = stringToBoolean(process.env.JB_CJS)
const includeESMBundle = stringToBoolean(process.env.JB_ESM_BUNDLE)
const includeNPM = stringToBoolean(process.env.JB_NPM)
export default createRollupConfig(globals.default, {
includeUMD,
includeCJS,
includeESMBundle,
includeNPM,
})