jsoverson / preprocess

Preprocess HTML, JavaScript, and other files with directives based off custom or ENV configuration
Other
366 stars 80 forks source link

Will it support .jsx files? #79

Closed gocreating closed 9 years ago

gocreating commented 9 years ago

both gulp-preprocess and preprocessify are using preprocess but it seems it doesn't support jsx files will preprocess support jsx in the future?

BendingBender commented 9 years ago

Well, if you're talking about React's jsx, then this is basically JavaScript with some inline XML. In this case you can use the newest version of the lib directly as is. You must however provide the following option to the preprocess() function:

{
  type: 'js'
}

If you're using gulp-preprocess or preprocessify, you'll have to open an issue there so that they bump their dependencies and implement the pass-through of the new options.