malaporte / nashorn-commonjs-modules

CommonJS modules support for Nashorn
MIT License
108 stars 31 forks source link

Added option to register custom FileHandlers for specific file endings. #13

Open erikhakansson opened 7 years ago

erikhakansson commented 7 years ago

I use this addition to serve .jsx files (as used by React.js) that first need to be transformed from .jsx to .js. I.e., I can't just rename them to .js.

However, my transformation from .jsx to .js is very specific for my project and would not be very relevant for most people, however I imagine an option to add custom file handlers would be.