webpack: Expose lodash in lib.js

2725bae275e490362cede4e857a0176cd42e31cd

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -0Showing whitespace changes
public/lib.js+3 -0
@@ -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 */
5import lodash from 'lodash';
5import Fuse from 'fuse.js';6import Fuse from 'fuse.js';
6import DOMPurify from 'dompurify';7import DOMPurify from 'dompurify';
7import hljs from 'highlight.js';8import hljs from 'highlight.js';
@@ -50,6 +51,7 @@ export function initLibraryShims() {
50}51}
5152
52export default {53export default {
54 lodash,
53 Fuse,55 Fuse,
54 DOMPurify,56 DOMPurify,
55 hljs,57 hljs,
@@ -65,6 +67,7 @@ export default {
65};67};
6668
67export {69export {
70 lodash,
68 Fuse,71 Fuse,
69 DOMPurify,72 DOMPurify,
70 hljs,73 hljs,