andreypopp / andreypopp/es6-module-jstransform

can't export unnamed functions

Abierto
#2 6 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
16
Forks
4
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

``` js
export function d () {}

// compiles to:
function d () {}
module.exports.d = d;
```

``` js
export function () {}
// throws
```

It also doesn't work on strings

``` js
export 'test'
```

if I have imported a module and then try to export it again it also throws an error:

``` js
import { set } from 'dex';

export set
// Unexpected end of input
```

But as you said the spec is still in flux so I guess it doesn't make sense to invest in those issues until the spec is somewhat finalized.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.