andreypopp / andreypopp/es6-module-jstransform
can't export unnamed functions
Offen
- Vorherrschende Sprache
- JavaScript
- Sterne
- 16
- Forks
- 4
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
``` 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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.