We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a58ec63 commit 38a05daCopy full SHA for 38a05da
1 file changed
packages/storybook8/.storybook/main.ts
@@ -90,11 +90,22 @@ const storybookConfig: StorybookConfig = {
90
91
// Custom rule for ts files
92
const tsRule = {
93
- test: /\.(tsx?|jsx?)$/,
94
- loader: 'ts-loader',
95
- options: {
96
- transpileOnly: true,
97
- },
+ test: /\.(tsx?|jsx?)$/,
+ loader: 'ts-loader',
+ options: {
+ transpileOnly: true,
+ compilerOptions: {
98
+ // Create a unique output format to avoid collisions
99
+ module: 'esnext',
100
+ moduleResolution: 'node',
101
+ // Generate unique source maps
102
+ sourceMap: true,
103
+ inlineSources: true,
104
+ // Ensure unique output
105
+ declaration: true
106
+ }
107
+ },
108
+ exclude: /node_modules/,
109
};
110
111
const txtRule = {
0 commit comments