built-in server doesn't set correct mime types for js
Open
Nobody has claimed this yet.
C-bug
- Dominant language
- Rust
- Stars
- 22.2k
- Forks
- 1.9k
- PR merge metrics
- PR metrics pending
Description
Problem
The built-in server command serves js as plain text, which causes modules to fail to import. I'm trying to integrate https://github.com/tabatkins/railroad-diagrams into my book however the mime type needs to be text/javascript.
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
No response
Contributor guide
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.
Research direction
Start at the built-in server command and trace how it determines MIME types for JavaScript files. Verify that JavaScript modules are served as text/javascript and that the reported import failure is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, rust
- Domain
- cli, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100