Releases: esm-dev/esm.sh
Releases Β· esm-dev/esm.sh
v74
- Support
?no-require
flag, with this option you can ignore therequire(...)
call in ESM packages. To support logic like below:// index.mjs let depMod; try { depMod = await import("/path") } finally { // `?no-require` will skip next line when resolving depMod = require("/path") }
v73
v72
v71
v70
- Return
bare
code whentarget
andpin
provided to reduce requests// https://esm.sh/[email protected] export * from "https://cdn.esm.sh/v69/[email protected]/es2021/react.js";
// https://esm.sh/[email protected]?target=es2020&pin=v70 {content just from https://cdn.esm.sh/v69/[email protected]/es2021/react.js}
- Rollback
parseCJSModuleExports
function to v68 (close #277, #279) - Fix
exports
resolving in package.json (close #278, #280) - Upgrade deno
std/node
to 0.130.0
v69
- Force the dependency version of react equals to react-dom's version
before: [email protected] -> [email protected] now: [email protected] -> [email protected]
- Fix version check for prerelease (can't resolve
react
inreact-dom@rc
) - Improve cjs module transform (can handle more edge cases, for example react-18-rc defines non-esm for browsers and deno)
v68
- Fix
bundle
mode (close #271) - Support
jsnext:main
in package.json (close #272) - Improve
cjs-esm-exports
to supportUMD
format// exports: ['foo'] const { exports } = parse('index.cjs', ` (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.MMDParser = global.MMDParser || {}))); }(this, function (exports) { exports.foo = "bar"; })) `);
- Upgrade deno node polyfill to 0.128.0
v67
v66
v65
- Feature: Support
?path
query to specify thesubmodule
, this is friendly for import maps with options (close #260)// import-map.json { imports: { "react-dom/": "https://esm.sh/react-dom?target=es2015&path=/" } }
// equals to https://esm.sh/react-dom/server?target=es2015 import { renderToString } from "react-dom/server"
- Upgrade
deno.land/std/node
polyfill to 0.125.0 - Upgrade
esbuild
to v0.14.18 - bugfixs for #251, #256, #261, #262