Skip to content

Commit 7f1e1ab

Browse files
update transpile to only be in dev mode
1 parent 38a05da commit 7f1e1ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/storybook8/.storybook

packages/storybook8/.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const storybookConfig: StorybookConfig = {
9393
test: /\.(tsx?|jsx?)$/,
9494
loader: 'ts-loader',
9595
options: {
96-
transpileOnly: true,
96+
transpileOnly: DEVELOPMENT_BUILD ? true : false,
9797
compilerOptions: {
9898
// Create a unique output format to avoid collisions
9999
module: 'esnext',

0 commit comments

Comments
 (0)