-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1691 from embroider-build/fix-ember-data
Move fix for @ember-data/debug into virtualPeerDeps
- Loading branch information
Showing
3 changed files
with
4 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
import type { AddonMeta } from '@embroider/core'; | ||
import { EmberDataBase } from '../ember-data'; | ||
|
||
export default class EmberDataStore extends EmberDataBase { | ||
get packageMeta(): Partial<AddonMeta> { | ||
let meta = super.packageMeta; | ||
|
||
// this is here because the compat-adapter for @ember-data/debug adds this | ||
// to externals because it has an undeclared peerDep on us, and thus might | ||
// resolve totally incorrect copies. By making it external we leave it up to | ||
// runtime, where we will find this implicit-module for the actual copy of | ||
// @ember-data/store that is active in app. | ||
meta['implicit-modules'] = [...(meta['implicit-modules'] ?? []), './index.js']; | ||
|
||
return meta; | ||
} | ||
} | ||
export { EmberDataBase as default } from '../ember-data'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters