Skip to content

Commit e98a39a

Browse files
committed
🤖 Force Babel transformation on all file types for emotion
Add explicit include pattern to ensure Babel processes all TypeScript/JavaScript files, not just JSX. This is needed for emotion's babel plugin to properly transform styled components. _Generated with `cmux`_
1 parent ef45b5a commit e98a39a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.storybook/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ const config: StorybookConfig = {
2828
});
2929

3030
// Add React plugin with emotion configuration
31+
// Force Babel to process all files (not just JSX) to ensure emotion transforms work
3132
config.plugins.push(
3233
react({
34+
include: '**/*.{jsx,tsx,ts,js}',
3335
jsxImportSource: '@emotion/react',
3436
babel: {
3537
plugins: ['@emotion/babel-plugin'],

0 commit comments

Comments
 (0)