Skip to content

Commit

Permalink
Remove ts-loader from canvas storybook webpack config. (#33896)
Browse files Browse the repository at this point in the history
* chore(NA): remove ts-loader from canvas storybook webpack config.

* chore(NA): use the correct preset.
  • Loading branch information
mistic authored Apr 1, 2019
1 parent f32a44a commit 8873897
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions x-pack/plugins/canvas/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = (_baseConfig, _env, config) => {
include: /\.storybook/,
loaders: 'babel-loader',
options: {
presets: [require.resolve('@babel/preset-react')],
presets: [require.resolve('@kbn/babel-preset/webpack_preset')],
},
},
);
Expand Down Expand Up @@ -55,15 +55,9 @@ module.exports = (_baseConfig, _env, config) => {
test: /\.tsx?$/,
use: [
{
loader: 'ts-loader',
loader: 'babel-loader',
options: {
transpileOnly: true,
experimentalWatchApi: true,
onlyCompileBundledFiles: true,
configFile: require.resolve('../../../../tsconfig.json'),
compilerOptions: {
sourceMap: true,
},
presets: [require.resolve('@kbn/babel-preset/webpack_preset')],
},
},
require.resolve('react-docgen-typescript-loader'),
Expand Down

0 comments on commit 8873897

Please sign in to comment.