Skip to content

Help with running jest tests #1

Open
@anwarhamr

Description

@anwarhamr

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions