mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? Add a benchmark that requires/imports nearly 10k of empty modules. Measures load and execution time for these modules. Might also be useful to measure the compile overhead of modules.
19 lines
534 B
JavaScript
19 lines
534 B
JavaScript
const idx = process.execArgv.indexOf('--cpu-prof')
|
|
if (idx >= 0) process.execArgv.splice(idx, 1)
|
|
|
|
/** @type {import("next").NextConfig} */
|
|
module.exports = {
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
experimental: {
|
|
// With Scope Hoisting ESM require cost is 0 and that's not what we want to test
|
|
turbopackScopeHoisting: false,
|
|
},
|
|
webpack: (config) => {
|
|
// With Scope Hoisting ESM require cost is 0 and that's not what we want to test
|
|
config.optimization.concatenateModules = false
|
|
return config
|
|
},
|
|
}
|