Skip to content

Commit ae250d7

Browse files
committed
Closure will only process npm requires only if files are under node_modules
1 parent 9e88e36 commit ae250d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cljsjs/npm/build.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
(string/replace require-path #"/" "\\$")))
104104
(closure/find-requires file))]
105105
{:input (.getPath file)
106-
:output (util/normalize-url (str "cljsjs.npm/" (strip-node-modules module-path)))
107-
:deps {:file (util/normalize-url (str "cljsjs.npm/" (strip-node-modules module-path)))
106+
:output (util/normalize-url (str "cljsjs.npm/node_modules/" module-path))
107+
:deps {:file (util/normalize-url (str "cljsjs.npm/node_modules/" module-path))
108108
:provides [module-name]
109109
:requires requires
110110
:module-type :commonjs}})))))))

0 commit comments

Comments
 (0)