-
Notifications
You must be signed in to change notification settings - Fork 137
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 #1435 from embroider-build/done-rewrite-node-modules2
Working to eliminate node_modules rewriting
- Loading branch information
Showing
74 changed files
with
3,333 additions
and
3,367 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { AddonMeta } from '@embroider/core'; | ||
import V1Addon from '../../v1-addon'; | ||
|
||
export default class EmberDataDebug extends V1Addon { | ||
get packageMeta(): Partial<AddonMeta> { | ||
let meta = super.packageMeta; | ||
|
||
// See also the compat-adapter for @ember-data/store where we make this an | ||
// implicit-module. | ||
meta.externals = [...(meta.externals ?? []), '@ember-data/store']; | ||
|
||
return meta; | ||
} | ||
} |
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 +1,17 @@ | ||
export { EmberDataBase as default } from '../ember-data'; | ||
import { 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; | ||
} | ||
} |
Oops, something went wrong.