seiffert / require-jsx

A require.js plugin that allows you to use JSX files as require.js dependencies.
96 stars 17 forks source link

Allow non-js extensions #6

Open thomasboyt opened 10 years ago

thomasboyt commented 10 years ago

This PR lets you set the extension for the path the jsx! filter looks for (personally, I use .jsx):

requirejs.config({
  // ...
  jsx: {
    extension: 'jsx'
  }
});
pirelenito commented 10 years ago

+1

iamnoah commented 10 years ago

+1, was about to submit the same thing.

seiffert commented 10 years ago

Thank you for your contribution! I'm no longer using this plugin actively, but I can merge this PR if you want! If you have further ideas for improvement, you could also fork this repository and I'll put a deprecation notice into README with a link to your repository.

pirelenito commented 10 years ago

Hello everyone.

I've been using jsx-requirejs-plugin in my RequireJS setups. There is jsx file extension support via a configuration parameter (much like this pull request).

It is being actively developed, so it might be worth taking a look.

mrienstra commented 10 years ago

@seiffert, might as well update the README.md to mention that you are looking for a successor, and also direct folks towards philix/jsx-requirejs-plugin.

murashki commented 9 years ago

+1