Skip to content

Commit

Permalink
Merge pull request #2 from zertosh/jsx-support
Browse files Browse the repository at this point in the history
Added jsx support
  • Loading branch information
Tyler Kellen committed Jul 3, 2014
2 parents d0dbb9c + 1621bae commit d629a55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var extensions = {
'.ini': 'require-ini',
'.js': null,
'.json': null,
'.jsx': 'node-jsx',
'.litcoffee': 'coffee-script/register',
'.ls': 'LiveScript',
'.toml': 'toml-require',
Expand All @@ -15,6 +16,9 @@ var extensions = {
};

var register = {
'node-jsx': function (module) {
module.install({ extension: '.jsx', harmony: true });
},
'toml-require': function (module) {
module.install();
}
Expand All @@ -25,6 +29,7 @@ var jsVariantExtensions = [
'.co',
'.coffee',
'.iced',
'.jsx',
'.litcoffee',
'.ls'
];
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"csv",
"iced-coffee-script",
"ini",
"jsx",
"livescript",
"react",
"toml",
"xml",
"yaml",
Expand Down

0 comments on commit d629a55

Please sign in to comment.