andreypopp / andreypopp/es6-module-jstransform
can't export unnamed functions
Abierto
- 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.