ESBuild 0.17 deprecated watch(), rebuild(), and broke my program! (And why I hate JS dependencies 😡)

1 year ago
16

esbuild release 0.17 came out a few days ago and has some breaking changes to the watch(), rebuild(), and serve() functions, which of course broke my stonks program. Deprecations within JS packages like this are annoying and make maintaining your existing code a real pain in the...

Source code link (must be a Patreon member to access):
https://github.com/wakproductions-patreon/stonknotes/tree/stonknotes-024-esbuild-breaks-watch-code
https://www.patreon.com/winstonkotzan

Tip me in BTC! Bitcoin Address: 13FKUusPH1UPvgSkoQRRy6hEg4hyMqKzLS

0:00 JS dependency updates = lost productivity
1:19 node-sass deprecation broke the existing version of the program
4:15 esbuild old code with watch()
6:21 esbuild 0.17 breakage explained
8:02 Their migration guide is missing some features
9:53 Using onStart() and onEnd() with plugin to replace rebuild()
10:16 Overview of my updated code

Background Music:
Purple Motion - Assembly '94 Invitation

Loading comments...