Skip to content

Commit

Permalink
Refactor stories to enable show code feature
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-gendron committed Apr 24, 2020
1 parent f34af87 commit 8eb3de5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 5 additions & 8 deletions packages/storybook/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,17 @@ module.exports = {
},
{
test: /\.stories.tsx?$/,
use: [
{
loader: require.resolve('@storybook/source-loader'),
}
],
enforce: 'pre',
include: path.resolve(__dirname, '../stories')
use: [{ loader: '@storybook/source-loader' }],
enforce: 'pre',
include: path.resolve(__dirname, '../stories')
},
{
test: /\.tsx?$/,
use: [{
loader: 'ts-loader',
options: {
transpileOnly: true,
transpileOnly: false,
ignoreDiagnostics: [7005]
}
}],
},
Expand Down
1 change: 0 additions & 1 deletion packages/storybook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"esModuleInterop": true,
"jsx": "react",
"allowSyntheticDefaultImports": true,
"noEmitOnError": true,
"sourceMap": true,
"baseUrl": "./stories/",
"paths": {
Expand Down

0 comments on commit 8eb3de5

Please sign in to comment.