Skip to content

Commit

Permalink
Merge pull request #475 from ember-cli/hjdivad/remove-warnings
Browse files Browse the repository at this point in the history
Fix babel-plugin-debug-macros warning
  • Loading branch information
hjdivad committed Dec 18, 2019
2 parents d948272 + 27e393f commit e68934d
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions index.js
Expand Up @@ -13,37 +13,6 @@ module.exports = {
}, resolverConfig.features);
},

init() {
this._super.init.apply(this, arguments);
this.options = this.options || {};
if (process.env.EMBER_CLI_MODULE_UNIFICATION) {
this.project.isModuleUnification = function () {
return true;
}
}
this._emberResolverFeatureFlags = this.emberResolverFeatureFlags();

this.options.babel = {
loose: true,
plugins: [
[require.resolve('babel-plugin-debug-macros'), {
debugTools: {
source: 'this-is-dumb-it-should-not-be-required-i-blame-rwjblue'
},
envFlags: {
source: 'ember-resolver-env-flags',
flags: { DEBUG: process.env.EMBER_ENV != 'production' }
},
features: {
name: 'ember-resolver',
source: 'ember-resolver/features',
flags: this._emberResolverFeatureFlags
}
}]
]
};
},

included() {
this._super.included.apply(this, arguments);

Expand Down

0 comments on commit e68934d

Please sign in to comment.