How to create plugin for bun-bundler to extract chunks of output in webpack-stats.json format #23138
Unanswered
bulatshafigullin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I need to make stats.json for my website, to use generated outputs and chunks in template generator. I was using webpack for create webpack-stats.json which has following format :
so I can then use this data to generate <script> tags by using somethis like this
render_bundle("main")
I've created plugin for that, but stuck with this and need help:
I was expecting to take all entry artifacts (kind == 'entry-point')
and traverse them down following sourcemap field
but bundler happens to not be forming graph of relations I expected.
So, my question is, if it's there any way to get the relations graph.
Beta Was this translation helpful? Give feedback.
All reactions