Adding sourcemaps

This commit is contained in:
Bel Curcio
2020-11-06 20:22:02 -03:00
parent d2c8bf1dc9
commit 2b0e5a4ea3
3 changed files with 10 additions and 2 deletions

View File

@@ -1,8 +1,10 @@
const nextSourceMaps = require('@zeit/next-source-maps');
const bundleAnalyzer = require('@next/bundle-analyzer')({
enabled: !!process.env.BUNDLE_ANALYZE
})
module.exports = module.exports = bundleAnalyzer({
module.exports = nextSourceMaps(bundleAnalyzer({
images: {
domains: ['cdn11.bigcommerce.com'],
},
@@ -54,4 +56,4 @@ module.exports = module.exports = bundleAnalyzer({
},
]
},
});
}));