diff --git a/packages/shared-internals/src/template-colocation-plugin.ts b/packages/shared-internals/src/template-colocation-plugin.ts index e78d778c5..52f830b1e 100644 --- a/packages/shared-internals/src/template-colocation-plugin.ts +++ b/packages/shared-internals/src/template-colocation-plugin.ts @@ -93,6 +93,9 @@ export default function main(babel: typeof Babel) { }, ExportDefaultDeclaration(path: NodePath, state: State) { + if (state.associate) { + return; + } let template = getTemplate(path, state); if (!template) { return; @@ -131,6 +134,9 @@ export default function main(babel: typeof Babel) { } }, ExportNamedDeclaration(path: NodePath, state: State) { + if (state.associate) { + return; + } let template = getTemplate(path, state); if (!template) { return;