Skip to content

Conversation

dynst
Copy link
Contributor

@dynst dynst commented Jul 24, 2025

https://antfu.me/posts/move-on-to-esm-only
https://joyeecheung.github.io/blog/2024/03/18/require-esm-in-node-js/

Since there's no point maintaining a CJS build, just completely convert the smallest package as a proof of concept for #1004.

https://www.typescriptlang.org/docs/handbook/modules/reference.html#the-module-compiler-option

Since the build uses tsc directly instead of a build system like Vite+Rollup or a bundler that produces a single file like esbuild, explicit file extensions are required in imports (TypeScript won't add omitted file extensions and transpiles .ts files to .js files 1:1).

@dynst dynst marked this pull request as draft July 24, 2025 06:03
@dynst dynst marked this pull request as ready for review July 24, 2025 14:06
@dynst dynst changed the title faucet-client in ESM convert faucet-client to ESM Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant