File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2
2
// -*- mode: js -*-
3
3
"use strict" ;
4
4
5
- var getAllVisitors = require ( '../vendor/fbtransform/visitors' ) . getAllVisitors ;
6
- var transform = require ( 'jstransform' ) . transform ;
5
+ var transform = require ( '../main' ) . transform ;
7
6
var propagate = require ( "../vendor/constants" ) . propagate ;
8
7
9
8
require ( "commoner" ) . version (
@@ -31,7 +30,7 @@ require("commoner").version(
31
30
var constants = context . config . constants || { } ;
32
31
33
32
// This is where JSX, ES6, etc. desugaring happens.
34
- source = transform ( getAllVisitors ( ) , source ) . code ;
33
+ source = transform ( source , { harmony : true , stripTypes : true } ) ;
35
34
36
35
// Constant propagation means removing any obviously dead code after
37
36
// replacing constant expressions with literal (boolean) values.
You can’t perform that action at this time.
0 commit comments