text: 'use strict'
  
  module.exports = {
    core: {
      builder: 'webpack5',
    },
    stories: ['../src/**/*.stories.@(js|mdx)'],
    addons: ['@storybook/addon-essentials', '@storybook/addon-links'],
    webpackFinal: async (config) => {
      // `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
      // You can change the configuration based on that.
      // 'PRODUCTION' is used when building the static version of storybook.
  
      // Make whatever fine-grained changes you need
      config.module.rules.push({
        test: /\.scss$/,
        use: ['style-loader', 'css-loader', 'sass-loader'],
      })
  
      // Return the altered config
      return config
    },
  }
  