Hi @zoubingwu,
first of all thanks for this, it's a great tool and saves a lot of time!
There is one bit of the implementation that could simplify (in my opinion) the usage for a few people.
When using Webpack in a client side app (eg a React app generated with https://create-react-app.dev/), there are issues in importing modules supposed to run in a node environment.
Hi @zoubingwu, first of all thanks for this, it's a great tool and saves a lot of time!
There is one bit of the implementation that could simplify (in my opinion) the usage for a few people.
When using Webpack in a client side app (eg a
React
app generated with https://create-react-app.dev/), there are issues in importing modules supposed to run in anode
environment.Because of that, this bit causes a bit of issues:
do you think it would make sense to add a flag like
--browser
to change that piece of code to smaller when set? For example: