lang/web: refactor +web-react-mode detection

This commit is contained in:
Henrik Lissner 2017-04-01 23:33:52 -04:00
parent f213fbdf5c
commit ba681497ec

View File

@ -61,6 +61,7 @@
(def-project-mode! +web-react-mode
:modes (+javascript-npm-mode)
:when (when-let (npm (+javascript-npm-conf))
(and (assq 'react (append (cdr (assq 'dependencies npm))
(cdr (assq 'devDependencies npm)))))))
:when
(when-let (npm (+javascript-npm-conf))
(assq 'react (append (cdr (assq 'dependencies npm))
(cdr (assq 'devDependencies npm))))))