Skip to content

Commit

Permalink
Breaking: Remove babel plugin to force sync relationships (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanto authored and samselikoff committed Jul 18, 2019
1 parent 236a195 commit e29e2ac
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 583 deletions.
90 changes: 0 additions & 90 deletions force-sync-relationships-plugin.js

This file was deleted.

12 changes: 0 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ module.exports = {

this.app = app;
this.addonConfig = this.app.project.config(app.env)['ember-data-storefront'] || {};

let validOptions = [ 'rewrite', undefined ];
if (!validOptions.includes(this.addonConfig.forceSyncRelationships)) {
throw `[ Ember Data Storefront ] Invalid config option for forceSyncRelationships. You passed "${this.addonConfig.forceSyncRelationships}", must be one of ${validOptions.map(option => `"${option}"`).join(", ")}.`;
}

if (this.addonConfig.forceSyncRelationships === 'rewrite') {
app.options = app.options || {};
app.options.babel6 = app.options.babel6 || {};
app.options.babel6.plugins = app.options.babel6.plugins || [];
app.options.babel6.plugins.push(require('./force-sync-relationships-plugin'));
}
}

};
5 changes: 0 additions & 5 deletions node-tests/.eslintrc.js

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e29e2ac

Please sign in to comment.