Skip to content

Commit

Permalink
Handle inline bundles better
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Jan 6, 2022
1 parent 714ba66 commit a8c8d39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/core/src/public/Bundle.js
Expand Up @@ -315,7 +315,9 @@ export class PackagedBundle extends NamedBundle implements IPackagedBundle {
}

get type(): string {
return nullthrows(this.#bundleInfo).type;
// The bundle type may be overridden in the packager.
// However, inline bundles will not have a bundleInfo here since they are not written to the filesystem.
return this.#bundleInfo ? this.#bundleInfo.type : this.#bundle.type;
}

get stats(): Stats {
Expand Down

0 comments on commit a8c8d39

Please sign in to comment.