Skip to content

Commit

Permalink
Merge pull request #1758 from embroider-build/idempotent-colocation
Browse files Browse the repository at this point in the history
Make template-colocation-plugin idempotent
  • Loading branch information
ef4 authored Jan 16, 2024
2 parents 6e53394 + 6e51510 commit 92e72e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/shared-internals/src/template-colocation-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ export default function main(babel: typeof Babel) {
},

ExportDefaultDeclaration(path: NodePath<t.ExportDefaultDeclaration>, state: State) {
if (state.associate) {
return;
}
let template = getTemplate(path, state);
if (!template) {
return;
Expand Down Expand Up @@ -131,6 +134,9 @@ export default function main(babel: typeof Babel) {
}
},
ExportNamedDeclaration(path: NodePath<t.ExportNamedDeclaration>, state: State) {
if (state.associate) {
return;
}
let template = getTemplate(path, state);
if (!template) {
return;
Expand Down

0 comments on commit 92e72e4

Please sign in to comment.