We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
require("pretty-error") is run at startup since it is required in module scope. However, somehow that is rather heavy package to load, can take 200ms.
require("pretty-error")
Only do require("pretty-error") when actual error happens.
Anything that includes html-webpack-plugin, start node with --inspect-brk, attach debugger and profile. Or put console.logs in errors.js
--inspect-brk
node 16, node 18 html-webpack-plugin 5.5.0
The text was updated successfully, but these errors were encountered:
@Knagis yeah, let's do it, do you want to send a PR?
Sorry, something went wrong.
ok, will do
PR ready.
Successfully merging a pull request may close this issue.
Current behaviour 💣
require("pretty-error")
is run at startup since it is required in module scope. However, somehow that is rather heavy package to load, can take 200ms.Expected behaviour ☀️
Only do
require("pretty-error")
when actual error happens.Reproduction Example 👾
Anything that includes html-webpack-plugin, start node with
--inspect-brk
, attach debugger and profile. Or put console.logs in errors.jsEnvironment 🖥
The text was updated successfully, but these errors were encountered: