Skip to content

Commit

Permalink
fix(flags): Add default property to require
Browse files Browse the repository at this point in the history
  • Loading branch information
drazik committed Dec 6, 2018
1 parent c77efb5 commit 94a4465
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cozy-flags/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export { default as FlagSwitcher } from './browser/FlagSwitcher'

const flag = global ? require('./node/flag') : require('./browser/flag')
const flag = global
? require('./node/flag').default
: require('./browser/flag').default

export default flag

0 comments on commit 94a4465

Please sign in to comment.