Skip to content

improve esm wildcard expansion

Compare
Choose a tag to compare
@iambumblehead iambumblehead released this 26 Feb 19:42
· 62 commits to main since this release
63e82e8

Essentially, this release enables esmock to resolve the following esm export, see #293

{
  "exports": {
    "./*": {
      "require": "./*.js",
      "import": "./*.js"
    }
  }
}

the following is added to the README,

Note: Typescript loaders ts-node 👍 and tsm 👍 are compatible with other loaders, including esmock. swc 👎 and tsx 👎 are demonstrated as incompatible with other loaders, including esmock.

Full list of changes,