js-module-system icon indicating copy to clipboard operation
js-module-system copied to clipboard

Help with running jest tests

Open anwarhamr opened this issue 5 years ago • 0 comments

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!

anwarhamr avatar Oct 04 '18 02:10 anwarhamr