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

How to use es6 modules ? #9

Closed
spyl94 opened this issue Apr 3, 2015 · 1 comment
Closed

How to use es6 modules ? #9

spyl94 opened this issue Apr 3, 2015 · 1 comment

Comments

@spyl94
Copy link

spyl94 commented Apr 3, 2015

Hello,

I'm trying to build a small es6 react demo with babel-brunch. The build using brunch works fine, but the code inside app.js doesn't seem to be executed...

Do I need to add something to use es6 modules ? Thanks.

@spyl94
Copy link
Author

spyl94 commented Apr 11, 2015

Solved the problem by adding :

  onCompile: function() {
    require('fs').appendFile('public/js/app.js', '\n\nrequire(\'app\');');
  }

@spyl94 spyl94 closed this as completed Apr 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant