webpack: Expose lodash in lib.js

This commit is contained in:
Cohee 2024-10-17 01:32:13 +03:00
parent ca844c8b0a
commit 2725bae275
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
* Add all the libraries that you want to expose to the client here.
* They are bundled and exposed by Webpack in the /lib.js file.
*/
import lodash from 'lodash';
import Fuse from 'fuse.js';
import DOMPurify from 'dompurify';
import hljs from 'highlight.js';
@ -50,6 +51,7 @@ export function initLibraryShims() {
}
export default {
lodash,
Fuse,
DOMPurify,
hljs,
@ -65,6 +67,7 @@ export default {
};
export {
lodash,
Fuse,
DOMPurify,
hljs,