Skip to content

Commit

Permalink
Disable in loose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Dec 10, 2021
1 parent 3b8927b commit f012ac9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ export default function transformClass(
}

let returnArg = t.cloneNode(classState.classRef);
if (!classState.createClassInjected) {
if (!classState.createClassInjected && !classState.isLoose) {
returnArg = createClassHelper([returnArg]);
}

Expand Down

0 comments on commit f012ac9

Please sign in to comment.