Skip to content
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

Error handling improvements to esbuild plugin #2595

Merged
merged 11 commits into from
Mar 7, 2025
Prev Previous commit
Next Next commit
Update packages/esbuild/test/index.js
As suggested

Co-authored-by: Titus <tituswormer@gmail.com>
Signed-off-by: Daniel Egnor <egnor@ofb.net>
  • Loading branch information
egnor and wooorm authored Mar 4, 2025
commit 0b85289884a698ae93e14e9533528434d7c91822
4 changes: 3 additions & 1 deletion packages/esbuild/test/index.js
Original file line number Diff line number Diff line change
@@ -416,7 +416,9 @@ test('@mdx-js/esbuild', async function (t) {
file.message('4', esm)
file.message('5', text)
const m6 = file.message('6', jsx)
if (m6.place && 'start' in m6.place) delete m6.place.start.offset
assert(m6.place)
assert('start' in m6.place)
delete m6.place.start.offset
file.message('7', head.position.end).fatal = true // End of heading
}
}