samchon / tgrid

TypeScript RPC (Remote Procedure Call) for WebSocket and Worker protocols
https://tgrid.com/
MIT License
141 stars 19 forks source link

Compatible with https://esm.sh #60

Closed samchon closed 6 months ago

samchon commented 6 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.