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.
|
* 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.
|
* They are bundled and exposed by Webpack in the /lib.js file.
|
||||||
*/
|
*/
|
||||||
|
import lodash from 'lodash';
|
||||||
import Fuse from 'fuse.js';
|
import Fuse from 'fuse.js';
|
||||||
import DOMPurify from 'dompurify';
|
import DOMPurify from 'dompurify';
|
||||||
import hljs from 'highlight.js';
|
import hljs from 'highlight.js';
|
||||||
|
@ -50,6 +51,7 @@ export function initLibraryShims() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
lodash,
|
||||||
Fuse,
|
Fuse,
|
||||||
DOMPurify,
|
DOMPurify,
|
||||||
hljs,
|
hljs,
|
||||||
|
@ -65,6 +67,7 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
lodash,
|
||||||
Fuse,
|
Fuse,
|
||||||
DOMPurify,
|
DOMPurify,
|
||||||
hljs,
|
hljs,
|
||||||
|
|
Loading…
Reference in New Issue