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