Skip to content

v126

Compare
Choose a tag to compare
@ije ije released this 15 Jun 13:45
· 803 commits to main since this release
  • breaking: the esm tag function of build API now imorts module
    import { esm } from "https://esm.sh/build";
    const mod = await esm`
      export const foo:string = "bar"
    `;
    console.log(mod.foo); // "bar"
  • cjs-lexer: support annotated exports (close #659)
    // Annotate the CommonJS export names for ESM import in node:
    0 && (module.exports = {
      foo,
      bar
    });
    this is created by esbuild with cjs format, the cjs-lexer of esm.sh v125 or lower can't get the [foo,bar] export names.
  • Add support for basic auth (#657 by @johnpangalos)