Closed mkazlauskas closed 2 months ago
ESM requires fully qualified imports, but tsc can't do that when transpiling.
Previously it was possible with --experimental-specifier-resolution=node, but this option has now been removed from node.js
Add eslint rules to enforce esm-compliant source and fix existing code.
This makes it possible to use cardano-js-sdk in node.js with ESM.
dev-preview@us-east-1
dev-preprod@us-east-1@v2
dev-mainnet@us-east-1
Closing in favor of #1325
Context
ESM requires fully qualified imports, but tsc can't do that when transpiling.
Previously it was possible with --experimental-specifier-resolution=node, but this option has now been removed from node.js
Proposed Solution
Add eslint rules to enforce esm-compliant source and fix existing code.
This makes it possible to use cardano-js-sdk in node.js with ESM.
Important Changes Introduced