Feature request: Resolve bare module specifiers in JS modules
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- devtools
Research direction
Start with the referenced implementation in packages/javascript/src/lib/serve.ts, then locate the dev server’s request or middleware entry point. The issue names no repository test; done means bare module specifiers resolve and load correctly in browsers.
Written by the indexing model from the issue text.
Description
This dev server would be a lot more useful for projects with client-side JS if it could resolve bare module specifiers so that they load correctly in browsers.
It's not too terribly complicated to do this with middleware and a dependency on something like enhanced-resolve. Here's a single-file implementation in my own server framework that could be adopted: https://github.com/justinfagnani/zipadee/blob/main/packages/javascript/src/lib/serve.ts
- Dominant language
- JavaScript
- Stars
- 109
- Forks
- 19
- Avg merge
- 6d 3h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 11ty/dev-server
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
11ty/dev-server#95 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
11ty/dev-server#86 · 1 comment ·
-
enhancement needs-votes
Difficulty 3/5 1-2 days Newbie friendliness 45/100
11ty/dev-server#82 · 4 comments ·
-
enhancement needs-votes
Difficulty 3/5 1-2 days Newbie friendliness 45/100
11ty/dev-server#53 · 3 comments · 2 reactions ·
-
enhancement needs-votes
Difficulty 4/5 3-5 days Newbie friendliness 35/100
11ty/dev-server#45 ·
Similar issues
-
Difficulty 2/5 Under an hour Newbie friendliness 85/100
capricorn86/happy-dom#2474 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
juice-shop/juice-shop#3662 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Add unit-test coverage for API URL resolution and device authentication error handlingPossibly taken @Simranjit8933 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
fossasia/eventyay-checkin#170 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day