11.2.2 Requiring JS
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- documentation
Research direction
Start at documentation section 11.2.2, “Requiring JS,” and read the explanation of relative requires and the IMPORTANT note. Clarify the note about classpath lookup versus physical file location, preserving the distinction from Node.js; the section should be understandable without asking what the comment means.
Written by the indexing model from the issue text.
Description
Relative requires are resolved by first looking at the current namespace and then resolving a relative path from that name. In the above example we are in demo/app.cljs to the ./bar require resolve to demo/bar.js, so it is identical to (:require ["/demo/bar"]).
IMPORTANT | The files must not be physically located in the same directory. The lookup for the file appears on the classpath instead. This is unlike node which expects relative requires to always resolve to physical files.
Thomas, I find this IMPORTANT comment obscure.
- Dominant language
- Makefile
- Stars
- 31
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
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.
More from shadow-cljs/shadow-cljs.github.io
-
Difficulty 1/5 Under an hour Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
shadow-cljs/shadow-cljs.github.io#55 · 9 comments ·
-
4.3.2 SSL Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
shadow-cljs/shadow-cljs.github.io#7 · 2 comments ·
All issues in shadow-cljs/shadow-cljs.github.io
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bancolombia/sentinel#22 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
redhat-developer/rhdh-plugins#4887 · 2 comments ·