UNPKG
ababel-react
Version:
latest (2.0.0)
2.0.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
React flavor ababel
github.com/a-labo/ababel-react
a-labo/ababel-react
ababel-react
/
example
/
example-usage.js
14 lines
(10 loc)
•
233 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
const
ababelReact =
require
(
'ababel-react'
)
const
co =
require
(
'co'
)
co
(
function
* () {
yield
ababelReact
(
'**/*.jsx'
, {
cwd
:
'src'
,
out
:
'dest'
,
minified
:
true
}) }).
catch
(
(
err
) =>
console
.
error
(err))