Skip to content

Commit

Permalink
feat: fix issues with parsed env variables that should be strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Sep 16, 2017
1 parent 990ea06 commit 8a34fa5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ const input =
process.env.BUILD_INPUT ||
ifFile(`src/${format}-entry.js`, `src/${format}-entry.js`, 'src/index.js')

const filenameSuffix = parseEnv('BUILD_FILENAME_SUFFIX', '')
const filenamePrefix = parseEnv(
'BUILD_FILENAME_PREFIX',
isPreact ? 'preact/' : '',
)
const filenameSuffix = process.env.BUILD_FILENAME_SUFFIX || ''
const filenamePrefix =
process.env.BUILD_FILENAME_PREFIX || isPreact ? 'preact/' : ''
const globals = parseEnv(
'BUILD_GLOBALS',
isPreact ? Object.assign(defaultGlobals, {preact: 'preact'}) : defaultGlobals,
Expand Down

0 comments on commit 8a34fa5

Please sign in to comment.