Skip to content

Commit 761b2ce

Browse files
committed
fix: isTargetEntry
1 parent c7d7ab1 commit 761b2ce

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/photonjs/src/plugin/plugins/targetLoader.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ export function targetLoader(
8383
return {
8484
...resolved,
8585
// tag module as target entry for other plugins to use
86-
photonConfig: {
87-
isTargetEntry: true,
86+
meta: {
87+
photonConfig: {
88+
isTargetEntry: true,
89+
},
8890
},
8991
id: `${prefix}:${resolved.id}`,
9092
}

packages/photonjs/src/plugin/utils/entry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ export interface PhotonMetaConfig {
1919
* a 'full-reload' will occur.
2020
*/
2121
isGlobal?: boolean
22+
isTargetEntry?: boolean
2223
}

0 commit comments

Comments
 (0)