diff --git a/index.js b/index.js index 0a083b6..05ba78e 100644 --- a/index.js +++ b/index.js @@ -2,17 +2,17 @@ 'use strict'; var autoprefixer = require('broccoli-autoprefixer'); -var defaults = require('lodash').defaults; +var defaults = require('lodash/defaults'); module.exports = { name: 'ember-cli-autoprefixer', included: function(app, parentAddon) { this.app = app; - + if (typeof app.import !== 'function' && app.app) { this.app = app = app.app; } - + this._super.included.apply(this, arguments); this.options = defaults(this.app.options.autoprefixer || {}, { enabled: true diff --git a/package.json b/package.json index ac95eec..bbce38f 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ ], "dependencies": { "broccoli-autoprefixer": "^4.0.0", - "lodash": "^3.1.0", + "lodash": "^4.0.0", "ember-cli-babel": "^5.1.5" }, "ember-addon": {