cssinjs / cssinjs/jss

[cli] support for ES6

Open
#1,061 0 comments 1 reaction 0 assignees View on GitHub
feature request help wanted
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

JSS-cli can specify an export format `-e es6` but it cannot specify an import format for es6.

```
$ ./node_modules/.bin/jss convert dist/colors.js -f css
evalmachine.:1
export default
^^^^^^

SyntaxError: Unexpected token export
```

It works correctly with:
```
module.exports = {
```

So I must transpile everything with Babel first. It would be helpful if JSS-cli could work with ES6.

__Versions:__
- jss: 10.0.0-alpha.13
- jss-cli: 5.0.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.