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
Hello! Thank you for React.NET. This is a great library to handle React Elements easily.
I need to find a way to compile all *.js files with JSX transformer (not only "*.jsx"). I found that there is a hard-coded file extension string inside JsxBundleProcessor.cs file:
Is there any way to override this extension so Cassette compiles all "*.js" files? React JSX transformer provides some ES6 features that are useful in general so I think it should be configurable.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this! Back when that code was written, JSXTransformer did not expose any of the ES6 transforms. Its sole purpose was to transform JSX, so it made sense that it only touched *.jsx files. Now that JSXTransformer is useful even on non-JSX files, it definitely makes sense to remove this restriction.
If you like, you can clone a copy of React.NET, modify that file, and build it locally. The dev-build.bat file in the root of the repository will build the project and package it into NuGet packages in the output folder which you can then install. Feel free to send a pull request if you don't mind fixing it yourself, otherwise I'll fix this soon.
Hello! Thank you for React.NET. This is a great library to handle React Elements easily.
I need to find a way to compile all
*.js
files with JSX transformer (not only "*.jsx"). I found that there is a hard-coded file extension string insideJsxBundleProcessor.cs
file:React.NET/src/Cassette.React/JsxBundleProcessor.cs
Line 45 in a138b75
Is there any way to override this extension so Cassette compiles all "*.js" files? React JSX transformer provides some ES6 features that are useful in general so I think it should be configurable.
The text was updated successfully, but these errors were encountered: