peh / react-grails-asset-pipeline

Grails React Asset Pipeline plugin
8 stars 3 forks source link

require_tree does not pick up JSX files #2

Open tobia opened 9 years ago

tobia commented 9 years ago

I tried using the following line in a JSX file, to include all files from a folder of components, but it doesn't work:

// =require_tree widgets

The same line in a .js file works fine.

peh commented 9 years ago

i spent some hours investigating this and it seems to be a bug in asset-pipeline-core. i will open an issue on there side but leave this open until it is resolved. until then you sadly have to require everything file by file