Which webpack hooks can hooking into dynamic import
I write a webpack plugin which collect informations of import. I use parser.hooks.import
hooking into import statement like import xxx from 'xxx'
. but for dynamic import like const yy = import('yy')
. is there a hook can hooking it.
Export all classes and functions to one namespace like in Lodash
In Lodash all function are in the _
namespace. This namespace is located in the window
. So we can access the namespace anywhere. Want to achieve the same but facing an issue. I have to export all my classes manually to a namespace and then to the window
.