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

Help with running jest tests #1

Open
anwarhamr opened this issue Oct 4, 2018 · 0 comments
Open

Help with running jest tests #1

anwarhamr opened this issue Oct 4, 2018 · 0 comments

Comments

@anwarhamr
Copy link

anwarhamr commented Oct 4, 2018

Thank you so much for this, it saved my day... I still don't understand how all this stuff works but I'm hopeful...
I've published my module moment-from-valueof and I've been able to include it in my other project when I debug but when I build my application for production I get this message about my module.

ERROR in main.dd1f5b1514034a68bb32.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [./~/moment-from-valueof/dist/index.js:21911,0]

when I look at the source for that file the arrow functions have not been transpiled. They should have been, right? Or do I need to do something in my application's webpack/babel.?.?
I've been searching the web for that error and found a few posts but can't seem to get a solution.

Any help or insight would be great!

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