Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
To get es2015 module import/export syntax working you'll need to add a transformer to your babel config... Which raises the question, have you been introduced to babel yet?
Go watch a few ~1hr devshop talks about es6 on YouTube to give you some more background info.
Let me know how you feel after that. If you still are having trouble, I'll fork your repo, set that up for you, and then, PR it.. in like 3 minutes. It's not complex, you just have to do a little research before hand. Perhaps choose a boilerplate repo (google es6 boilerplate). Just try to avoid any one using webpack, don't bigger order more than you can chew just yet.
Don't get discouraged, it's really not complicated
You just need to do a fair deal of reading
@rozzzly hey. I installed babel-cli added it to my package.json to transpile my es6 code to es5 into separate folder.
To do that I use npm build. It then transpiles and outputs to directory I specified.
I used presets for es2015 in babelrc.
Am I on right track?
I checked it worked.
Thanks for the guidance. It means a lot :)
(It transpiled but there are some inherent issues with my code because i used commonjs style for core inclusion of call back. But that's a separate issue and I will deal with that by rewriting that logic part.)
Since you're project was pretty small, I definitely suggest just cloning a boilerplate (has everything preconfigured, watch scripts, etc) and just rewriting your code in es6. When I get off work I'll PR something real quick. And I'm glad to help, es6 is annoying to get going, but it sooooooo worth it.