chore: setup bundle analyzer

This commit is contained in:
Bart Stefanski 2023-04-16 19:04:24 +02:00
parent cf2d0fdfe1
commit fc907b02d5
5 changed files with 864 additions and 20 deletions

View file

@ -1,4 +1,6 @@
module.exports = {
reactStrictMode: true,
transpilePackages: ["ui"],
};
const withPlugins = require("next-compose-plugins")
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
})
module.exports = withPlugins([[withBundleAnalyzer]], { reactStrictMode: true, transpilePackages: ["ui"] })