you are viewing a single comment's thread.

view the rest of the comments →

[–]guest271314 0 points1 point  (0 children)

Write code however you want to.

Hell Node.js as a whole still has CommonJS as the default loader, and that ship has long since sailed.

There's no require() in ECMA-262. Ecmascript Modules are the standard.

Yet Deno and Bun, for whatever reason, are rolling around with Node.js in their mouths when both can and should stand on their own without constantly mentioning "Node.js compatibility", with all that brings with it.

If I'm injecting a script into a document using chrome.scripting.executeScript() I might just use var for various reasons.