Skip to content

Commit

Permalink
apply ember-data hack
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Apr 29, 2020
1 parent 009f1be commit fcfe617
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/frontend/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,23 @@ module.exports = function (defaults) {
// }
// }
// }
]
],
compatAdapters: new Map([
['@ember-data/model', EmberDataCompatAdapter],
['@ember-data/record-data', EmberDataCompatAdapter],
]),
});
}

// Old-style broccoli-build
return mergeTrees([app.toTree(), ...additionalTrees]);
};

const { V1Addon } = require('@embroider/compat');
const { forceIncludeModule } = require('@embroider/compat/src/compat-utils');

class EmberDataCompatAdapter extends V1Addon {
get packageMeta() {
return forceIncludeModule(super.packageMeta, './-private');
}
}

0 comments on commit fcfe617

Please sign in to comment.