Changeset View
Changeset View
Standalone View
Standalone View
web/xec-web-components/main.js
- This file was added.
module.exports = { | |||||
stories: ['../src/**/*.stories.tsx'], | |||||
// Add any Storybook addons you want here: https://storybook.js.org/addons/ | |||||
addons: ['@storybook/addon-essentials', '@storybook/addon-postcss'], | |||||
webpackFinal: async config => { | |||||
config.module.rules.push({ | |||||
test: /\.(ts|tsx)$/, | |||||
loader: require.resolve('babel-loader'), | |||||
options: { | |||||
presets: [['react-app', { flow: false, typescript: true }]], | |||||
}, | |||||
}); | |||||
config.resolve.extensions.push('.ts', '.tsx'); | |||||
return config; | |||||
}, | |||||
}; |