speced / speced/respec

Convert respec-worker as an ES module

Open
#1,667 5 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.