You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
It would probably make sense to have an option to disable the require hook. It exists in the view layer so that we can clear the cached require, otherwise you wouldn't be able to see changes to views without restarting the whole app (I learned this the hard way when I wrote this thing, that first website sucked to work on).
I'm running into an issue with using both Babel and Sugar with io.js which was recently switched to in #29
Repro:
https://github.com/crdeutsch/iojsbabel
My app is requiring
sugar
way beforeexpress-react-views
requiresbabel
.I can require
babel
beforesugar
but thenexpress-react-views
will cause an error becausebabel
can only be required once.In addition Babel doesn't recommend using itself in libraries:
https://babeljs.io/docs/usage/require/
Would it make sense to remove all .JSX parsing libraries as a dependency from
express-react-views
?Or at least have an option to skip the require call to
babel
?The text was updated successfully, but these errors were encountered: