Convert respec-worker as an ES module
Open
Nobody has claimed this yet.
enhancement
good first issue
refactoring
- Dominant language
- JavaScript
- Stars
- 806
- Forks
- 434
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 32
Description
As part of #1640:
A worker script can be a module if we construct it by new Worker(url, { type: "module" }). I think this will ultimately benefit #1469 where we can load it as a module that can also work in Node.js.
- Wait until browsers support it
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
The issue names no files or tests. Start by reviewing #1640 and #1469, then locate respec-worker and the code that constructs its Worker; verify how the module option affects browser execution. The work is done when the worker is loaded as an ES module without breaking its current browser behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100