3 ms·
> This short window is pretty much the only time that "isomorphic" really applied to NPM Huh? Most npm modules still work fine in both browser and native conte
by josephg 4y ago
> This short window is pretty much the only time that "isomorphic" really applied to NPM
Huh? Most npm modules still work fine in both browser and native contexts. Bundlers generally support CJS modules, and modern npm modules can use esm just fine too if you set the "type": "module" field in package.json.
Even heavily browser based libraries like react usually work fine from nodejs too, to make server side rendering easier.
Isomorphic npm modules should still be the default.
I'll have to give deno a try. Node has increasingly diverged from the browser, and it causes real headaches.