-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compile Deno modules to Node.js modules? #4528
Comments
I had read about it before. Its function is not to convert remote URLs to es modules, but to allow importing non-JavaScript assets. I need something that converts remote modules (such as https://deno.land/std/flags/mod.ts) to something that Node.js can use. |
I see. And what particular behavior are you looking for? Do you want your remote dependencies downloaded+cached+bundled, or resolved at runtime (i.e. replacing |
@ondras I want to download and resolve at compile time. I only want to create one file (bundle). |
What's wrong with |
@nayeemrmn I tried again with |
@nayeemrmn Another thing, how to create |
@KSXGitHub As far as types, see #3385. I've tried to do it recently. It is complicated because of the way the TypeScript compiler generates the declaration files for bundles means effectively it doesn't work. I need to basically handcraft a bundle |
I have tried various bundlers (parcel, webpack, rollup, @pika/pack), they all share the same limitation: They do not recognise remote module URLs.
The text was updated successfully, but these errors were encountered: