-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add build error handling #1192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add build error handling #1192
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/hsx5hz7n8 |
Now the error I'm getting, which I don't understand, is
It fails on building |
But why would this fail now and not before? |
not sure, I think rollup is async by default ? |
The issue is basically
It's late though, so I will think about this tomorrow. I think that we'll just export whatever the globals we need from the index.js file, and set the Avoiding globals is better, but that's for another topic. |
Yep, it is. In earlier versions of Node (f.e. Node 10) unhandled Promise rejections are silent errors that don't terminate the program. So we have to add the explicit error handling to ensure that the build fails when there's an error. In newer versions of Node, any unhandled Promise rejections automatically end the program with non-zero exit. |
…ld globals in favor of a single global DOCSIFY, and add tests for this
…e-new-single-global update src/core/index.js to export all global APIs, deprecate old globals…
Summary
Add error handling to build processes so they don't silently fail.
What kind of change does this PR introduce? (check at least one)
If changing the UI of default theme, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
fix #xxx[,#xxx]
, where "xxx" is the issue number)You have tested in the following browsers: (Providing a detailed version will be better.)
If adding a new feature, the PR's description includes:
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Other information:
lib
directory.