Closed vikiival closed 9 months ago
Hello I want to use is-ipfs package in https://github.com/subsquid project. However this package does not support CommonJS.
Ideally export CommonJS files as .cjs and ESM as .mjs Not sure if aegir (esmbuild) can support that.
The support could be blocked by https://github.com/multiformats/js-multiformats/issues/220
This module is ESM only - you can use dynamic imports to load it from CJS.
Problem
Hello I want to use is-ipfs package in https://github.com/subsquid project. However this package does not support CommonJS.
Solution
Ideally export CommonJS files as .cjs and ESM as .mjs Not sure if aegir (esmbuild) can support that.
Blocker
The support could be blocked by https://github.com/multiformats/js-multiformats/issues/220