I am building an app that has a requirement that it needs to be compatible back to Firefox 38.
When I build and run it in this old version of FF, I get the following errors:
SyntaxError: class is a reserved identifier vendor.js:125836:0
ReferenceError: define is not defined matrix-frontend.js:5:0
TypeError: (intermediate value).extend is undefined
Which clearly does not work. And now that I think it thru, makes sense why Ember’s build tool would not get this.
@rwjblue Thank you so much. I should have replied earlier. But as soon as I saw your post I immediately went to fix the problem and voila, and then forgot to come back to say thank you.
That pattern (using "npm:package") is actually a feature of ember-browserify and it does work if you add ember-browserify. But ember-browserify is deprecated in favor of ember-auto-import, which lets you do a regular NPM import.