1+ import 'acorn-jsx' ;
12import fs from 'fs' ;
23import { resolve , relative , dirname , basename , extname } from 'path' ;
34import chalk from 'chalk' ;
@@ -6,7 +7,6 @@ import promisify from 'es6-promisify';
67import glob from 'glob' ;
78import autoprefixer from 'autoprefixer' ;
89import { rollup , watch } from 'rollup' ;
9- import acornJsx from 'acorn-jsx' ;
1010import nodent from 'rollup-plugin-nodent' ;
1111import commonjs from 'rollup-plugin-commonjs' ;
1212import nodeResolve from 'rollup-plugin-node-resolve' ;
@@ -19,12 +19,10 @@ import prettyBytes from 'pretty-bytes';
1919import shebangPlugin from 'rollup-plugin-preserve-shebang' ;
2020import typescript from 'rollup-plugin-typescript' ;
2121import flow from './lib/flow-plugin' ;
22- // import exorcist from 'exorcist';
2322import camelCase from 'camelcase' ;
2423
2524const interopRequire = m => m . default || m ;
2625const readFile = promisify ( fs . readFile ) ;
27- // const writeFile = promisify(fs.writeFile);
2826const stat = promisify ( fs . stat ) ;
2927const isDir = name => stat ( name ) . then ( stats => stats . isDirectory ( ) ) . catch ( ( ) => false ) ;
3028const isFile = name => stat ( name ) . then ( stats => stats . isFile ( ) ) . catch ( ( ) => false ) ;
@@ -226,7 +224,7 @@ function createConfig(options, entry, format, writeMeta) {
226224 } ,
227225 parser : {
228226 plugins : {
229- jsx : acornJsx
227+ jsx : true
230228 }
231229 }
232230 } ) ,
0 commit comments