{"version":3,"sources":["jsdelivr-header.js","/npm/next-plugin-bundle-stats@4.21.8/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,yBAAE,0BAA6B,QAAQ,+BAE7C,OAAO,QAAU,CAAC,EAAgB,CAAC,IAAM,CAAC,EAAa,CAAC,KAAM,IACzD,EACH,OAAA,CAAQ,EAAQ,GACd,IAAK,EAAQ,eACX,MAAM,IAAI,MACR,uGAIJ,MAAM,IAAE,EAAG,SAAE,GAAa,EAQ1B,OANK,GAAQ,GACX,EAAO,QAAQ,KACb,IAAI,yBAAyB,IAIC,mBAAvB,EAAW,QACb,EAAW,QAAQ,EAAQ,GAG7B,CACT","file":"/npm/next-plugin-bundle-stats@4.21.8/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/next-plugin-bundle-stats@4.21.8/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const { BundleStatsWebpackPlugin } = require('bundle-stats-webpack-plugin');\n\nmodule.exports = (pluginOptions = {}) => (nextConfig = {}) => ({\n  ...nextConfig,\n  webpack(config, options) {\n    if (!options.defaultLoaders) {\n      throw new Error(\n        'This plugin is not compatible with Next.js versions below 5.0.0 https://err.sh/next-plugins/upgrade',\n      );\n    }\n\n    const { dev, isServer } = options;\n\n    if (!dev && !isServer) {\n      config.plugins.push(\n        new BundleStatsWebpackPlugin(pluginOptions),\n      );\n    }\n\n    if (typeof nextConfig.webpack === 'function') {\n      return nextConfig.webpack(config, options);\n    }\n\n    return config;\n  },\n});\n"]}