Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Ember 3 on FF 38

$
0
0

@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 and define working to be able to run 3.X on FF38?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles