2021-05-19 04:55:23 +03:00
|
|
|
module.exports = {
|
2021-05-25 08:16:33 +03:00
|
|
|
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
|
2021-11-18 00:36:00 +03:00
|
|
|
addons: ['@storybook/addon-links', '@storybook/addon-essentials', 'storybook-addon-designs'],
|
2021-05-25 08:16:33 +03:00
|
|
|
webpackFinal: (config) => {
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.(j|t)sx?$/,
|
|
|
|
use: {
|
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
|
|
|
presets: [
|
|
|
|
'@babel/preset-env',
|
|
|
|
'@babel/typescript',
|
|
|
|
'@babel/preset-react',
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
'@babel/transform-runtime',
|
|
|
|
'@babel/plugin-proposal-object-rest-spread',
|
|
|
|
'@babel/plugin-proposal-optional-chaining',
|
|
|
|
'@babel/plugin-proposal-class-properties',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
exclude: /node_modules\/(?!(@tlon\/indigo-dark|@tlon\/indigo-light|@tlon\/indigo-react)\/).*/,
|
|
|
|
});
|
|
|
|
return config;
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|