Skip to content

Commit

Permalink
allow template-colocation-plugin to work on v2 apps
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jun 4, 2024
1 parent a7f9079 commit 701f881
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/shared-internals/src/template-colocation-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ export default function main(babel: typeof Babel) {

if (state.opts.packageGuard) {
let owningPackage = PackageCache.shared('embroider', state.opts.appRoot).ownerOfFile(filename);
if (!owningPackage || !owningPackage.isV2Ember() || !owningPackage.meta['auto-upgraded']) {
if (
!owningPackage ||
!owningPackage.isV2Ember() ||
// TODO remove allowing v2 app as part of https://github.com/embroider-build/embroider/pull/1955
!(owningPackage.meta['auto-upgraded'] || owningPackage.isV2App())
) {
debug('not handling colocation for %s', filename);
return;
}
Expand Down

0 comments on commit 701f881

Please sign in to comment.