Sander,

Thanks for the response.   I think it's more the format of the file.  
Webpack errors on the fact that I use a class within a directive.   If I 
exclude the directive file from app.js, the program loads fine.   When I 
include the file, I get the error BUT only when viewed through Cordova 
In-App browser.  Regular browsers do not show any issue.  I can see the 
error thrown using adb logcat.   

"Uncaught SyntaxError: <unknown message reserved_word>", source: 
https://staging.ser.vi/app.js (23)

Line 23 is the 1st line with the class statement.
.   

-Scott


On Tuesday, December 18, 2018 at 12:31:22 AM UTC-5, Sander Elias wrote:
>
> Hi Scott,
>
> I don't like a webpack issue to me. Rather I suspect that Cordova doesn't 
> support es2016. You can compile your application to es5. If you are using 
> typescript that's a single setting in your tsconfig.json. Otherwise, you 
> might use babel to compile down to es5. Or change your directive by hand.
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to