Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

Meettya/clinch.jsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Status Build Status

clinch.jsx

This is external addon for clinch - CommonJS to browser packer to support React .jsx files.

This version have ES2015 support, with additional option es2015 : yes.

How to use

Clinch = require 'clinch'
clinch_jsx = require 'clinch.jsx'

# create packer object
packer = new Clinch runtime : on
# add plugin (chainable)
packer.addPlugin clinch_jsx
# or add plugin with es2015 option
packer.addPlugin clinch_js6 es2015 : yes

For more information see main module documentation.

Options

es2015

Use options es2015 to set up ES2015 support:

packer.addPlugin clinch_js6 es2015 : yes

extension

Use option extension to set up custom file extension:

packer.addPlugin clinch_js6 extension : '.jsx6' # now files with .jsx6 will be processed wia clinch_js6

About React version

React grow fast and add new features and drop old one in every new releases, so clinch.jsx have some version for all minor React version.

This is 0.14 version, used for React 0.14 branch, where react-tools was deprecated and .jsx compiled by Babel. For options see Babel options.