node-mercury-jsx

1.0.0 • Public • Published

node-mercury-jsx

Transparently require() mercury jsx from node.

Usage

require('node-mercury-jsx').install()

If you want to use a different extension, do:

require('node-mercury-jsx').install({extension: '.jsx'})

If you want to couple with an additional transform (such as CoffeeScript), do:

var coffee = require('coffee-script');
require('node-mercury-jsx').install({
  extension: '.coffee',
  additionalTransform: function(src) {
    return coffee.compile(src, {
      'bare': true
    });
  }
});

If you want to use ES6 transforms available in the JSX tool

require('node-mercury-jsx').install({harmony: true})

Readme

Keywords

Package Sidebar

Install

npm i node-mercury-jsx

Weekly Downloads

1

Version

1.0.0

License

Apache 2

Last publish

Collaborators

  • maxhoffmann