-
Entering some simple code in the REPL, with any pre-es6 preset and minify checkbox produces code referencing undefined Z.
Entered code:
```
let a=[];
for(let Z=0;ZZ;
```
Resulting broken code:
…
-
丢九章有如下内容:
ES6 规定,变量声明语句之中,如果使用解构赋值,扩展运算符后面必须是一个变量名,而不能是一个解构赋值表达式,
这个规定是否只是正对对象?我用Chrome,Edge和Firefox测试了一下数组扩展运算没有报错,如下:
let [a,...[b,c]]=[1,2,3];
a; // 1
b; // 2
c; // 3
-
## This is a bug report
With the `@babel/plugin-proposal-class-properties` plugin, it appears that property initializers get duplicated in the nested class' constructor when both classes are ex…
-
When i run project in "developing" mode everything works as it should.
`npm run dev`
But when i bundle code into Electron and run application, i am getting error in /app/dist/bundle.js
`npm run pac…
-
#### Input Code
```js
let foo;
while (0) {}
console.log(foo);
```
#### Actual Output
```js
'use strict';console.log(foo);
```
#### Details
Minimal repro in the sandbox […
-
https://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap=false&presets=env&targets=Node-8&browsers=&builtIns=false&debug=true&code=class%20StubArray%20%7B%0A%7D%0AStubArray.prototype%20%3D%20%5B%…
capaj updated
6 years ago
-
npm WARN deprecated babili@0.1.2: babili has been renamed to babel-minify. Please update to babel-minify
npm WARN deprecated babel-preset-babili@0.1.4: babili has been renamed to babel-minify. Please…
-
> Issue originally made by @Lapixx
### Bug information
- **Babel version:** 6.7.7
- **Node version:** 5.3.0
- **npm version:** 3.3.12
### Options
```
ES2015 and Stage 0 preset.
```
### Input code
``…
-
(with a built-in class, or indeed a class defined using the native `class` syntax)
### Input Code
```js
const headers = new class extends Headers {}
```
### Link to repl
[babel repl](http://…
-
### Input Code
```js
const code = `
(function Foo() {
class Foo {};
})
`;
const ast = babylon.parse(code);
babelTraverse(ast, {});
```
### Expected Behavior
This is lega…