Skip to content

Commit

Permalink
Fix lodash overwriting the global underscore
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Mar 25, 2019
1 parent 11c7bb2 commit 70e9554
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
10 changes: 1 addition & 9 deletions js/admin/allowed-groups.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/admin/allowed-groups.js.map

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions vue/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ module.exports = {
options: {
name: '[name].[ext]?[hash]'
}
},
{
/**
* Fixes lodash registering globally and therefore replacing server's underscore
*
* https://github.com/lodash/lodash/issues/1798#issuecomment-233804586
* https://github.com/webpack/webpack/issues/3017#issuecomment-285954512
*/
parser: {
amd: false
}
}
]
},
Expand Down

0 comments on commit 70e9554

Please sign in to comment.