Files
vercel__next.js/bench/module-cost/next.config.js
Tobias Koppers 48b2976ed2 Turbopack: add module cost benchmark (#81530)
### 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.
2025-07-11 14:34:38 +02:00

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
},
}