rsnext/packages/next/client/next.js
Jan Potoms 7078318543
Shave a few bytes off the bootstrap code (#14457)
Saw in the client bootstrap script that the error message was printed alongside the stacktrace. This is unnecessary since the stacktrace already includes the error message. In fact, it seems like browsers already do a good job of printing an error with its stacktrace when you just print them using `console.error`. It's a bit minor, but this should shave off a few bytes of the bundle.
2020-06-22 17:50:17 +00:00

5 lines
90 B
JavaScript

import initNext, * as next from './'
window.next = next
initNext().catch(console.error)