jaredhanson / jaredhanson/deamdify
Skip over dynamic require calls
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 196
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
If using a dynamic require such as:
var template = require(loc);
Deamdify converts to:
var template = module.exports = loc;
Which is definitely not correct.
Contributor guide
No contributing guide indexed for this repository
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 by reproducing the dynamic require example with require(loc) and trace how deamdify transforms it. The fix is done when dynamic require calls are left intact rather than converted to module.exports = loc, with a regression check for this example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100