text: require(`dotenv`).config()
  
  const shouldAnalyseBundle = process.env.ANALYSE_BUNDLE
  
  module.exports = {
    plugins: [
      {
        resolve: `@lekoarts/gatsby-theme-graphql-playground`,
        // See the theme's README for all available options
        options: {},
      },
      `gatsby-plugin-gatsby-cloud`,
      shouldAnalyseBundle && {
        resolve: `gatsby-plugin-webpack-bundle-analyser-v2`,
        options: {
          analyzerMode: `static`,
          reportFilename: `_bundle.html`,
          openAnalyzer: false,
        },
      },
    ].filter(Boolean),
  }
  