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.
I try parser.hooks.call.for('import')
and parser.hooks.expression.for('import')
, but they don’t works. which hooks should i use??
New contributor
Quinn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.