Skip to content

Commit

Permalink
make lodash-migrate work
Browse files Browse the repository at this point in the history
  • Loading branch information
cheapsteak committed Jan 5, 2017
1 parent c1c37f1 commit f1c4fa0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions dcc-portal-ui/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,6 @@ <h1><span class="t_badge t_badge_icon" style="background: #dc322f"><i class="ico
</script>
<portal-settings></portal-settings>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script src="https://cdn.rawgit.com/lodash/lodash-migrate/master/dist/lodash-migrate.min.js"></script>
</body>
</html>
10 changes: 8 additions & 2 deletions dcc-portal-ui/app/scripts/vendor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
require('expose?jQuery!expose?$!jquery');
global._ = require('lodash');
require('lodash-migrate');

// Don't require lodash here until we can remove lodash-migrate.
// Stick lodash4 methods onto lodash-migrate's `_`
Object.assign(_, _.pick(require('lodash'), [
'orderBy',
'maxBy',
'sumBy',
]));

// Angular Libs
require('expose?angular!angular');
Expand Down

0 comments on commit f1c4fa0

Please sign in to comment.