mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-31 01:10:51 +05:30
24 lines
612 B
JavaScript
24 lines
612 B
JavaScript
// @ts-nocheck
|
|
const { ContextReplacementPlugin } = require('webpack');
|
|
|
|
const rootConfig = require('../webpack.config');
|
|
|
|
module.exports = async ({ config }) => ({
|
|
...config,
|
|
resolve: rootConfig.resolve,
|
|
|
|
module: {
|
|
...config.module,
|
|
// our rules should satisfy all storybook needs,
|
|
// so replace all storybook defaults with our rules
|
|
rules: rootConfig.module.rules,
|
|
},
|
|
|
|
resolveLoader: rootConfig.resolveLoader,
|
|
|
|
plugins: [
|
|
...config.plugins,
|
|
...rootConfig.plugins.filter((plugin) => plugin instanceof ContextReplacementPlugin),
|
|
],
|
|
});
|