load-esm is a small utility for dynamically importing pure ESM packages from CommonJS TypeScript projects at runtime. It helps avoid common interop errors like ERR_REQUIRE_ESM and missing exports entries, without using hacks such as eval. It provides a loadEsm function that returns a Promise of the imported module namespace.
Project status
- Borewit/load-esm appears to be in light maintenance, with an upstream push on 2026-01-01, but the latest published update shown is v1.0.3 from 2025-08-24 (roughly 10 months ago), so updates seem infrequent.
- The update cadence looks irregular, with earlier changes clustering around Dec 2024 to Feb 2025, then another update in Aug 2025, and no further published updates listed after v1.0.3.
AI summary generated
Recent updates
v1.0.3
v1.0.3 is presented primarily as a documentation and NPM metadata update. The diff, however, includes a package.json change (adding an explicit module type) and CI coverage updates (adding Node 24), which are not called out in the release notes.
v1.0.2
v1.0.2 appears to be a documentation-only release. The changes update the README to mention the common CommonJS symptom ERR_REQUIRE_ESM and expand the documentation context, with no functional code changes observed in the provided diff.
v1.0.1
v1.0.1 adds a test harness (TypeScript test compilation, Mocha config) and a GitHub Actions workflow to run tests on multiple Node.js versions. The release notes claim there is no functional change in distribution, but the package metadata and published entry point files were modified.
Featuresv1.0.0
Release v1.0.0 primarily performs an API rename, changing the exported CommonJS function from loadModule to loadEsm. The repository also updates README examples and TypeScript typings to match the new function name.
Breakingv0.1.1
Release v0.1.1 is presented as a documentation-only update. The diff shows changes limited to the README and package.json metadata (version and keywords), with no underlying runtime or API code changes visible.
v0.1.0
v0.1.0 is the initial release of the load-esm package. Release notes do not describe any features, fixes, or changes beyond publishing version 0.1.0 on npm.