lang/web: refactor +web-react-mode detection
This commit is contained in:
parent
f213fbdf5c
commit
ba681497ec
1 changed files with 4 additions and 3 deletions
|
@ -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))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue