-
Notifications
You must be signed in to change notification settings - Fork 74
Open
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.
Metadata
Metadata
Assignees
Labels
No labels