-
Since the latest releases of node support most ES6 features, I think there should be a way for users to use ES6 inside the `karma.conf.js` file. Gulp, for instance, allows it through the use of Babel.…
-
A `mongodb.close()` call throws the following error:
```
Unhandled rejection TypeError: undefined is not a function
at Database.close$ (/var/www/swf/core/node_modules/promised-mongo/dist/Database.j…
-
A discussion point: Do we really need Babel?
Node has support for ES6 via the `--harmony` flag
`node --harmony server.js`
https://nodejs.org/en/docs/es6/
-
## Babel概述
`Babel`是一个广泛使用的ES6转码器,可以将ES6代码转为ES5代码,从而在现有环境执行。这意味着,你可以用ES6的方式编写程序,又不用担心现有环境是否支持。下面是一个例子。
```
// 转码前
input.map(item => item + 1);
// 转码后
input.map(function (item) {
return item + 1;
}…
-
Would be nice if you could extend that starter kit to support also es2015.
s.th. like:
```
var babel = require('gulp-babel');
gulp.task('es6', ['transform'], function () {
return gulp.src('output/…
-
## Problem
async arrow functions (ignored by Babel) trigger Hermes error
https://github.com/facebook/hermes/blob/4ab9f178caf6f0d47df0e0778bec5d1bf394f5c6/lib/IRGen/ESTreeIRGen-func.cpp#L215
c…
leotm updated
2 months ago
-
I use it like this:
```
"scripts": {
"test": "mocha --compilers js:babel/register-without-polyfill --colors --bail --reporter spec test/",
"test-cov": "istanbul cover node_modules/mocha/bin…
-
Just an idea. I wonder if it'd be useful to support the option of compiling imports to `/es6/` instead of `/lib/` paths, if you are working in a recent version of Webpack, or another environment that…
-
- Allow better syntax and code scalability leveraging ES6 Modules with Babel
- Use [rollup](https://github.com/rollup/rollup) for Module Bundling and code optimisation with effective tree-shaking and …
-
This package doesn't seem to work for me when using "Babel ES6 JavaScript" (`language-babel` package). It works fine for regular JavaScript.