Skip to content

Commit

Permalink
Define globals for lodash in rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed Jan 4, 2017
1 parent 5ba7fe5 commit ecef360
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
function globals(mod) {
if (mod.indexOf('lodash/') === 0) return '_';
}

export default {
entry: 'lib/src/index.js',
dest: 'lib/apollo.umd.js',
Expand All @@ -6,5 +10,6 @@ export default {
moduleName: 'apollo',
external: [
'lodash'
]
],
globals
};

0 comments on commit ecef360

Please sign in to comment.