-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Use babel npm package to transpile your ES6 to a commonjs target #25
Comments
See #19 (comment) |
The error occurs on running The module.exports doesn't seem to cooporate with importing in tests/index.test.js |
Possible fix:In index.js
Then import in another file
|
You could probably just implement babel-node and use newer JavaScript features, though Node should be supporting these by now what version of Node is this running on? |
@JacobMGEvans v10 LTS Though it seems to be using babel-node a better idea, CLI works good for now, hence, unless required, we could stay using the Node.js features. If you run into somekinda error writing tests or if yoi feel like using some advanced features, feel free to submit a PR with babel-node addition. |
Awesome! Will do, thanks. I'll focus on the unit tests first 😆
…On Wed, Oct 16, 2019, 9:57 PM Abhijith Vijayan ***@***.***> wrote:
@JacobMGEvans <https://github.com/JacobMGEvans> v10 LTS
Though it seems to be using babel-node a better idea, CLI works good for
now, hence, unless required, we could stay using the Node.js features.
If you run into somekinda error writing tests or if yoi feel like using
some advanced features, feel free to submit a PR with babel-node addition.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25?email_source=notifications&email_token=AGP4EOHOJMQQEPXBX6N7VI3QO7H75A5CNFSM4JBPL6H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBOSK7A#issuecomment-542975356>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGP4EOD5T5T6X222OLJYUODQO7H75ANCNFSM4JBPL6HQ>
.
|
export const validate = _options => {
^^^^^^
SyntaxError: Unexpected token export
The text was updated successfully, but these errors were encountered: