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
This is somewhat tricky in principle. There are a few options
a) Show the code that generates config (not the config itself) in a copy/pasteable way such that you could copy this code into your webpack.config.js and start tweaking. This is related to creating unstrap command: #5.
b) Show the final generated config (so no loops, conditions, etc. just the final output), but swap in all of the functions (e.g. include: filepath => !!condition), classes (e.g. new Terser) or other non serialisable JSON things as code strings, somehow.. Tricky.
c) Just print as is using node's util.inspect, which means some things will look like include: [Function: include],.
Option c) is the simplest and I while might not be as useful as say a) which you'd use for "ejecting" jetpack, it can still be very useful for debugging issues. So I've added that for now in 0.17.0! E.g.:
It would be nice if one can see the final output of the Webpack configuration
The text was updated successfully, but these errors were encountered: