Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for "import" inside of tag #69

kuashe opened this issue May 30, 2016 · 1 comment

Support for "import" inside of tag #69

kuashe opened this issue May 30, 2016 · 1 comment


Copy link

@kuashe kuashe commented May 30, 2016

ES 2015 "import" is not usable at the moment with riot .

Taken from this issue

     import baz from './baz' = 'bar'
riot.tag2('tag','', function(opts) {
   import baz from './baz' // import here is not allowed = 'bar'

I think the compiler needs to translate the import statement into a regular "import" .

import baz from './baz' // Will work this way
riot.tag2('tag','', function(opts) { = 'bar'

I will try to make thoses changes to the compiler .

@GianlucaGuarini GianlucaGuarini mentioned this issue Jun 4, 2016
14 of 16 tasks complete
Copy link

@GianlucaGuarini GianlucaGuarini commented Jun 17, 2016

fixed in riot-compiler@2.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.