@ahopkins wrote:
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
It seems that babel is not working right.
My
ember-cli-build.js
looks like this:'use strict'; const EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports = function(defaults) { let app = new EmberApp(defaults, { babel: { plugins: [ 'transform-object-rest-spread' ] }, 'ember-cli-babel': { includePolyfill: true } }); return app.toTree(); };
Does anyone know how I can get polyfills for
class
anddefine
working to be able to run 3.X on FF38?
Posts: 3
Participants: 2