3 ms·
Well there is a standard way to support multiple versions of a JS library: imports. I wonder is there is any proposal for a standard library with a well known
by diegof79 3y ago
Well there is a standard way to support multiple versions of a JS library: imports.
I wonder is there is any proposal for a standard library with a well known URI.
A browser with ESM support should be able to provide its internal version or fallback with a polyfill using import maps. Something like:
import {groupBy} from “std:arrays”
That can be also useful to standardize libs between Node,Deno,Bun without polluting the global namespace… and it’s backwards compatible