/* eslint-env node */ module.exports = function ({ config }) { config.module.rules.push({ test: /\.stories\.jsx?$/, loaders: [require.resolve('@storybook/source-loader')], enforce: 'pre', }); return config; };