samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.71k stars 89 forks source link

Make compatible with https://esm.sh #852

Closed samchon closed 3 months ago

samchon commented 3 months ago

I'm making a cloud playground website that can import any library registered in the NPM registry with esm.sh.

By the way, as esm.sh has been published for deno, it is not possible to import NodeJS built-in libraries.

In such reason, this PR removes every direct import statements to the NodeJS built-in libraries, and performed indirect import through import2 library, so that bundler cannot merge them.