Skip to content

Native support for importing remote modules via URL #10160

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

Open
kevinkenfack opened this issue May 15, 2025 · 1 comment
Open

Native support for importing remote modules via URL #10160

kevinkenfack opened this issue May 15, 2025 · 1 comment

Comments

@kevinkenfack
Copy link

Hi Parcel team,

First off, thanks a lot for this amazing tool! Parcel has made working on frontend projects a lot more enjoyable.

I’d like to suggest a feature: support for importing remote modules directly via URL, similar to how Deno or import maps work.

Use Case

In modern frontend workflows (especially with CDNs like Skypack, JSPM, esm.sh, etc.), it's increasingly common to import modules like this:

import { serve } from "https://deno.land/std/http/server.ts";

Currently, Parcel does not support remote imports out of the box. You need workarounds or extra tooling to make it work, which breaks the "zero config" philosophy.

Why it matters

  • Useful for quick prototyping without installing packages.
  • Encourages exploration and learning via CDN-based modules.
  • Aligns Parcel with newer, browser-native module patterns.
  • Could simplify simple scripts, playgrounds, or examples.

Possible Implementation (Optional)

A lightweight resolver that fetches and caches remote modules during development (with optional caching in .parcel-cache) could be a good starting point. Integration with import maps might also be useful down the line.


Thanks for considering this, and congrats again on the great work!

Best regards,

@devongovett
Copy link
Member

Would you want these URLs to be resolved and loaded at runtime, or downloaded and bundled at build time?

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

No branches or pull requests

2 participants