Quick question: how do you log how Rollup is resolving modules? #5347
Unanswered
matthew-dean
asked this question in
Q&A
Replies: 1 comment
-
Write a simple plugin.You can hook into https://rollupjs.org/plugin-development/#resolveid to see what Rollup tries to resolve. Inside that hook, you can await https://rollupjs.org/plugin-development/#this-resolve to see what Rollup would have resolved to. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to figure out how/why Rollup is including the wrong module (not the one installed in node_modules). I tried setting
logLevel: 'debug'
in my Rollup config, but this did nothing. How can you trace module resolution?Beta Was this translation helpful? Give feedback.
All reactions