I am using JSX with React. Is it possible to specify the type of the injected script in order to use the in-browser JSX transformer while working in dev mode?
<!-- inject:js -->
<script type="text/jsx" src="js/components/Component.js"></script>
<!-- endinject -->
gulp-inject considers JSX a different type than JavaScript. If you change the file suffix to
.jsxand use the start taginject:jsxinstead ofinject:js, the output contains thetype="text/jsx"attribute.Another option (if you need to keep the
.jssuffix) is to override the default transform function: