webpack: Expose lodash in lib.js
This commit is contained in:
parent
ca844c8b0a
commit
2725bae275
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue