Closed gnl closed 7 years ago
I started to notice a slowdown after I upgraded jp-babel
to use Babel v6,
but not as as slow as 10-15 seconds. I was hoping using babel-node
will
solve this issue. In the meantime, I would recommend to use jp-babel@0.0.6
that depends on Babel v5:
sudo npm install -g jp-babel@0.0.6
@gnl Is this still as bad as 10-15 seconds for you?
I'm using:
$ npm install -g jp-babel
/home/user/bin/jp-babel -> /home/user/lib/node_modules/jp-babel/bin/jp-babel.js
/home/user/lib
└─┬ jp-babel@0.0.9
├─┬ babel-core@6.13.2
│ ├── babel-traverse@6.13.0
│ ├── babel-types@6.13.0
│ ├── lodash@4.14.2
│ └── minimatch@3.0.3
└─┬ babel-preset-es2015@6.13.2
├── babel-plugin-transform-es2015-modules-amd@6.8.0
├── babel-plugin-transform-es2015-modules-systemjs@6.12.0
├── babel-plugin-transform-es2015-modules-umd@6.12.0
└─┬ babel-plugin-transform-regenerator@6.11.4
└── babel-plugin-syntax-async-functions@6.13.0
and I notice a delay of a few seconds only.
jp-babel seems to take about 10-15 seconds on the first eval with a fresh kernel (even on something simple as 1+2) as opposed to ijavascript's almost immediate evaluation.
Any way to speed this up?