cssinjs/jss

[cli] support for ES6

Open

#1.061 geöffnet am 15. März 2019

Auf GitHub ansehen
 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (434 Forks)batch import
feature requesthelp wanted

Repository-Metriken

Stars
 (7.000 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.<anonymous>: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