Skip to content

Commit

Permalink
fix: __DEV__ is not defined (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed Jun 8, 2020
1 parent 7358f0d commit 32cdcea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const builds = {
};

function getAllBuilds() {
return Object.keys(builds).map((key) => genConfig(builds[key]));
return Object.keys(builds).map(key => genConfig(builds[key]));
}

function genConfig({ outFile, format, mode }) {
Expand All @@ -61,7 +61,7 @@ function genConfig({ outFile, format, mode }) {
__DEV__:
format === 'es'
? // preserve to be handled by bundlers
`(__DEV__)`
`(process.env.NODE_ENV !== 'production')`
: // hard coded dev/prod builds
!isProd,
}),
Expand Down

0 comments on commit 32cdcea

Please sign in to comment.