Skip to content

Commit d27fd67

Browse files
justin808claude
andcommitted
Use keepClassNames instead of env.targets for Stimulus
Changed approach to preserve class names which is what Stimulus needs for proper controller registration and inheritance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1b3e731 commit d27fd67

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

config/swc.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ module.exports = {
44
react: {
55
runtime: "automatic"
66
}
7-
}
8-
},
9-
env: {
10-
targets: "defaults and supports es6-class"
7+
},
8+
// Preserve ES6 classes for Stimulus compatibility
9+
keepClassNames: true
1110
}
1211
};

0 commit comments

Comments
 (0)