webpack: Expose lodash in lib.js
| @@ -2,6 +2,7 @@ | ||
| 2 | 2 | * Add all the libraries that you want to expose to the client here. |
| 3 | 3 | * They are bundled and exposed by Webpack in the /lib.js file. |
| 4 | 4 | */ |
| 5 | +import lodash from 'lodash'; | |
| 5 | 6 | import Fuse from 'fuse.js'; |
| 6 | 7 | import DOMPurify from 'dompurify'; |
| 7 | 8 | import hljs from 'highlight.js'; |
| @@ -50,6 +51,7 @@ export function initLibraryShims() { | ||
| 50 | 51 | } |
| 51 | 52 | |
| 52 | 53 | export default { |
| 54 | + lodash, | |
| 53 | 55 | Fuse, |
| 54 | 56 | DOMPurify, |
| 55 | 57 | hljs, |
| @@ -65,6 +67,7 @@ export default { | ||
| 65 | 67 | }; |
| 66 | 68 | |
| 67 | 69 | export { |
| 70 | + lodash, | |
| 68 | 71 | Fuse, |
| 69 | 72 | DOMPurify, |
| 70 | 73 | hljs, |