Skip to content

Commit

Permalink
Merge pull request #8265 from parasharrajat/storybook-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham authored Mar 22, 2022
2 parents e8cf7d4 + 06b6038 commit 2969ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = ({config}) => {
// Necessary to overwrite the values in the existing DefinePlugin hardcoded to the Config staging values
const definePluginIndex = _.findIndex(config.plugins, plugin => plugin.constructor.name === 'DefinePlugin');
config.plugins[definePluginIndex].definitions.__REACT_WEB_CONFIG__ = JSON.stringify(env);
config.resolve.extensions.push('.web.js', '.website.js');
config.resolve.extensions = custom.resolve.extensions;

const babelRulesIndex = _.findIndex(custom.module.rules, rule => rule.loader === 'babel-loader');
const babelRule = custom.module.rules[babelRulesIndex];
Expand Down

0 comments on commit 2969ed7

Please sign in to comment.