mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 02:32:58 +05:30
dfa8c6df5f
* Fix storybook build command * Bump deps * Add storybook build step * Perform storybook build quiet Co-authored-by: ErickSkrauch <erickskrauch@ely.by>
41 lines
793 B
JavaScript
41 lines
793 B
JavaScript
/* eslint-env node */
|
|
module.exports = {
|
|
presets: [
|
|
[
|
|
'@babel/preset-typescript',
|
|
{
|
|
allowDeclareFields: true,
|
|
},
|
|
],
|
|
'@babel/preset-react',
|
|
'@babel/preset-env',
|
|
],
|
|
plugins: [
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
'@babel/plugin-proposal-function-bind',
|
|
'@babel/plugin-proposal-class-properties',
|
|
[
|
|
'@babel/plugin-transform-runtime',
|
|
{
|
|
corejs: 3,
|
|
},
|
|
],
|
|
['react-intl', { messagesDir: './build/messages/' }],
|
|
],
|
|
env: {
|
|
webpack: {
|
|
plugins: ['react-hot-loader/babel'],
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
modules: false,
|
|
useBuiltIns: 'usage', // or "entry"
|
|
corejs: 3,
|
|
},
|
|
],
|
|
],
|
|
},
|
|
},
|
|
};
|