Skip to content

Commit dd2dd66

Browse files
authored
Update storybook loader for ESM (#1012)
1 parent 3263cd2 commit dd2dd66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.storybook/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ const config: StorybookConfig = {
1414
webpackFinal: async (config) => {
1515
config.module = config.module || {};
1616
config.module.rules = config.module.rules || [];
17-
17+
1818
// Ensure TypeScript files are handled correctly
1919
config.module.rules.push({
2020
test: /\.tsx?$/,
2121
use: [
2222
{
23-
loader: require.resolve('ts-loader'),
23+
loader: 'ts-loader',
2424
options: {
2525
transpileOnly: true,
2626
},
2727
},
2828
],
2929
exclude: /node_modules/,
3030
});
31-
31+
3232
return config;
3333
},
3434
stories: ['../src/**/*.@(stories.tsx|mdx)'],

0 commit comments

Comments
 (0)