Attempting to use "import" and "export" es6 with asterisk-es6 in Rails 4

I am trying to use the words "import" and "export" for es6, as described at the beginning of babeljs, using the sprockets-es6 gem in Rails 4.

Can someone give an example of how to use it? I get an error message "import" should be present on top.

+4
source share
1 answer

It will be easier for you to help if you can provide a code snippet and a stack trace of the error you are receiving.

, , , ES2015 Spec.

ES6 ES6 - , .

0

Source: https://habr.com/ru/post/1598591/


All Articles