Remove ts-loader from canvas storybook webpack config. (#33896)
* chore(NA): remove ts-loader from canvas storybook webpack config. * chore(NA): use the correct preset.
This commit is contained in:
parent
f32a44a31f
commit
88738971bf
|
@ -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')],
|
||||
},
|
||||
},
|
||||
);
|
||||
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue