Skip to content

Commit 27e393f

Browse files
hjdivadrwjblue
andcommitted
Fix babel-plugin-debug-macros warning
Some Module Unification configuration remained in `init` of `index.js` which happened to be using the older v1 babel-plugin-debug-macros configuration API, resulting in many spurious and inactionable warnings to the console, eg ``` building... babel-plugin-debug-macros configuration API has changed, please update your configuration babel-plugin-debug-macros configuration API has changed, please update your configuration babel-plugin-debug-macros configuration API has changed, please update your configuration babel-plugin-debug-macros configuration API has changed, please update your configuration babel-plugin-debug-macros configuration API has changed, please update your configuration babel-plugin-debug-macros configuration API has changed, please update your configuration babel-plugin-debug-macros configuration API has changed, please update your configuration cleaning up ``` Kill it, and in so doing, kill the warning. Co-authored-by: Robert Jackson <[email protected]>
1 parent d948272 commit 27e393f

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

index.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,6 @@ module.exports = {
1313
}, resolverConfig.features);
1414
},
1515

16-
init() {
17-
this._super.init.apply(this, arguments);
18-
this.options = this.options || {};
19-
if (process.env.EMBER_CLI_MODULE_UNIFICATION) {
20-
this.project.isModuleUnification = function () {
21-
return true;
22-
}
23-
}
24-
this._emberResolverFeatureFlags = this.emberResolverFeatureFlags();
25-
26-
this.options.babel = {
27-
loose: true,
28-
plugins: [
29-
[require.resolve('babel-plugin-debug-macros'), {
30-
debugTools: {
31-
source: 'this-is-dumb-it-should-not-be-required-i-blame-rwjblue'
32-
},
33-
envFlags: {
34-
source: 'ember-resolver-env-flags',
35-
flags: { DEBUG: process.env.EMBER_ENV != 'production' }
36-
},
37-
features: {
38-
name: 'ember-resolver',
39-
source: 'ember-resolver/features',
40-
flags: this._emberResolverFeatureFlags
41-
}
42-
}]
43-
]
44-
};
45-
},
46-
4716
included() {
4817
this._super.included.apply(this, arguments);
4918

0 commit comments

Comments
 (0)