JavaScript Macros in Bun
Hacker News
JUNE 29, 2023
Call JavaScript functions at bundle-time and inline results into the AST
Hacker News
JUNE 29, 2023
Call JavaScript functions at bundle-time and inline results into the AST
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Hacker News
JUNE 30, 2023
The DOMContentLoaded event fires once all of your deferred JavaScript has finished running. Knowing when your main bundles have run is great insight in lieu of more forensic runtime data, and it’s something I look at with any client that leans heavily on (frameworks that lean heavily on) defer or type=module. View unabridged.
FEBRUARY 1, 2023
” Husting is now working on a larger bundle of ChatGPT add-ins for Excel, PowerPoint, OneNote and Outlook, as well. He has been working on Ghostwriter since November, using the Office JavaScript Framework. “What I’m doing is available for everybody to use and take advantage of now, because why wouldn’t you?”
Victor Zhou
FEBRUARY 15, 2019
Having never heard of module bundlers before, I instead homebrewed my own approaches for serving Javascript on the web. Stage 1: One file = One script In the very beginning, I separated my client Javascript into a few files and included all of them in my HTML with < script > tags. task ( 'build-js' , function ( ) { return gulp.
Victor Zhou
JUNE 10, 2019
Javascript is dynamically typed , but tools like Flow allow you to add static type checking to improve the safety of your codebase. Read my primer on using Flow to static type check your Javascript. While Flow is most commonly used to add types to client-side Javascript, it can also be easily used with Node.js!
Victor Zhou
APRIL 25, 2019
All you need is a working knowledge of Javascript: you should be comfortable with things like ES6 syntax, the this keyword, and Promises. Even if you’re not the most familiar with Javascript, you should still be able to get through most of this post. is the Javascript (JS) client entrypoint. I’ll refer to this as our CSS bundle.
Let's personalize your content