You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compiler.hooks.thisCompilation.tap('plugin-name',(compilation)=>{compilation.hooks.processAssets.tap('plugin-name',()=>{constentrypoint=compilation.entrypoints.get(xxx)constmodules=compilation.chunkGraph.getChunkModules(entrypoint.chunks[0])console.log(modules[0].id)// log like `(layer-name)/./your/file/path.js`})})
But Rspack doesn't support get the module.id now.
What does the proposed API of configuration look like?
Return the id in module instance.
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
I want to get
module.id
in webpack plugin like:But Rspack doesn't support get the
module.id
now.What does the proposed API of configuration look like?
Return the
id
in module instance.The text was updated successfully, but these errors were encountered: