babel / babel/website

FAQ: Add an explainer for certain output

Open
#1,454 0 comments 0 reactions 0 assignees View on GitHub
docs help wanted
Dominant language
TypeScript
Stars
777
Forks
1.4k
Avg merge
16h 45m
Merged PRs (30d)
3

Description

Location: https://github.com/babel/website/blob/master/docs/faq.md

Example: `(0, _pirates.addHook)(...)` - we want to call with the right context

https://stackoverflow.com/questions/32275135/why-does-babel-rewrite-imported-function-call-to-0-fn, etc

Contributor guide

No contributing guide indexed for this repository

Research direction

Open docs/faq.md and review the linked Stack Overflow question about Babel rewriting an imported function call to `(0, _pirates.addHook)(...)`. Clarify why this output is produced and how it relates to calling the function with the correct context. Done means the FAQ contains a self-contained explainer for this output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.