/opt/canhelp/node_modules/next/dist/esm/build
NameSizeModeActions
adapter/-0755rm
analysis/-0755rm
babel/-0755rm
manifests/-0755rm
next-config-ts/-0755rm
output/-0755rm
polyfills/-0755rm
segment-config/-0755rm
static-paths/-0755rm
swc/-0755rm
templates/-0755rm
turbopack-build/-0755rm
turborepo-access-trace/-0755rm
webpack/-0755rm
webpack-build/-0755rm
webpack-config-rules/-0755rm
after-production-compile.js16220644editdlrm
after-production-compile.js.map31390644editdlrm
build-context.js13530644editdlrm
build-context.js.map40560644editdlrm
collect-build-traces.js215980644editdlrm
collect-build-traces.js.map353920644editdlrm
compiler.js28840644editdlrm
compiler.js.map47860644editdlrm
create-compiler-aliases.js245640644editdlrm
create-compiler-aliases.js.map399610644editdlrm
define-env.js143350644editdlrm
define-env.js.map231660644editdlrm
deployment-id.js2180644editdlrm
deployment-id.js.map5060644editdlrm
duration-to-string.js5440644editdlrm
duration-to-string.js.map10840644editdlrm
entries.js362600644editdlrm
entries.js.map616600644editdlrm
generate-build-id.js7940644editdlrm
generate-build-id.js.map11980644editdlrm
get-babel-config-file.js6220644editdlrm
get-babel-config-file.js.map11000644editdlrm
get-babel-loader-config.js29370644editdlrm
get-babel-loader-config.js.map48850644editdlrm
handle-entrypoints.js45710644editdlrm
handle-entrypoints.js.map70760644editdlrm
handle-externals.js136230644editdlrm
handle-externals.js.map216530644editdlrm
index.js1472390644editdlrm
index.js.map2255750644editdlrm
is-writeable.js2620644editdlrm
is-writeable.js.map6350644editdlrm
load-entrypoint.js17000644editdlrm
load-entrypoint.js.map30980644editdlrm
load-jsconfig.js34510644editdlrm
load-jsconfig.js.map65080644editdlrm
next-dir-paths.js3010644editdlrm
next-dir-paths.js.map6810644editdlrm
normalize-catchall-routes.js41950644editdlrm
normalize-catchall-routes.js.map66430644editdlrm
page-extensions-type.js610644editdlrm
page-extensions-type.js.map1800644editdlrm
preview-key-utils.js34080644editdlrm
preview-key-utils.js.map59660644editdlrm
progress.js29490644editdlrm
progress.js.map45880644editdlrm
rendering-mode.js6180644editdlrm
rendering-mode.js.map7110644editdlrm
spinner.js28690644editdlrm
spinner.js.map49330644editdlrm
type-check.js52780644editdlrm
type-check.js.map92510644editdlrm
utils.js538060644editdlrm
utils.js.map953930644editdlrm
webpack-config.js1084980644editdlrm
webpack-config.js.map1582060644editdlrm
worker.js2060644editdlrm
worker.js.map4810644editdlrm
write-build-id.js3310644editdlrm
write-build-id.js.map7430644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/build/compiler.js.map (4786B)
{"version":3,"sources":["../../src/build/compiler.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { Span } from '../trace'\nimport getWebpackBundler from '../shared/lib/get-webpack-bundler'\n\nexport type CompilerResult = {\n errors: webpack.StatsError[]\n warnings: webpack.StatsError[]\n stats: webpack.Stats | undefined\n}\n\nfunction generateStats(\n result: CompilerResult,\n stat: webpack.Stats\n): CompilerResult {\n const { errors, warnings } = stat.toJson({\n preset: 'errors-warnings',\n moduleTrace: true,\n })\n if (errors && errors.length > 0) {\n result.errors.push(...errors)\n }\n\n if (warnings && warnings.length > 0) {\n result.warnings.push(...warnings)\n }\n\n return result\n}\n\n// Webpack 5 requires the compiler to be closed (to save caches)\n// Webpack 4 does not have this close method so in order to be backwards compatible we check if it exists\nfunction closeCompiler(compiler: webpack.Compiler | webpack.MultiCompiler) {\n return new Promise((resolve, reject) => {\n // @ts-ignore Close only exists on the compiler in webpack 5\n return compiler.close((err: any) => (err ? reject(err) : resolve()))\n })\n}\n\nexport function runCompiler(\n config: webpack.Configuration,\n {\n runWebpackSpan,\n inputFileSystem,\n }: {\n runWebpackSpan: Span\n inputFileSystem?: webpack.Compiler['inputFileSystem']\n }\n): Promise<\n [\n result: CompilerResult,\n inputFileSystem?: webpack.Compiler['inputFileSystem'],\n ]\n> {\n return new Promise((resolve, reject) => {\n const compiler = getWebpackBundler()(config)\n\n // Ensure we use the previous inputFileSystem\n if (inputFileSystem) {\n compiler.inputFileSystem = inputFileSystem\n }\n compiler.fsStartTime = Date.now()\n compiler.run((err, stats) => {\n const webpackCloseSpan = runWebpackSpan.traceChild('webpack-close', {\n name: config.name || 'unknown',\n })\n webpackCloseSpan\n .traceAsyncFn(() => closeCompiler(compiler))\n .then(() => {\n if (err) {\n const reason = err.stack ?? err.toString()\n if (reason) {\n return resolve([\n {\n errors: [{ message: reason, details: (err as any).details }],\n warnings: [],\n stats,\n },\n compiler.inputFileSystem,\n ])\n }\n return reject(err)\n } else if (!stats) throw new Error('No Stats from webpack')\n\n const result = webpackCloseSpan\n .traceChild('webpack-generate-error-stats')\n .traceFn(() =>\n generateStats({ errors: [], warnings: [], stats }, stats)\n )\n return resolve([result, compiler.inputFileSystem])\n })\n })\n })\n}\n"],"names":["getWebpackBundler","generateStats","result","stat","errors","warnings","toJson","preset","moduleTrace","length","push","closeCompiler","compiler","Promise","resolve","reject","close","err","runCompiler","config","runWebpackSpan","inputFileSystem","fsStartTime","Date","now","run","stats","webpackCloseSpan","traceChild","name","traceAsyncFn","then","reason","stack","toString","message","details","Error","traceFn"],"mappings":"AAEA,OAAOA,uBAAuB,oCAAmC;AAQjE,SAASC,cACPC,MAAsB,EACtBC,IAAmB;IAEnB,MAAM,EAAEC,MAAM,EAAEC,QAAQ,EAAE,GAAGF,KAAKG,MAAM,CAAC;QACvCC,QAAQ;QACRC,aAAa;IACf;IACA,IAAIJ,UAAUA,OAAOK,MAAM,GAAG,GAAG;QAC/BP,OAAOE,MAAM,CAACM,IAAI,IAAIN;IACxB;IAEA,IAAIC,YAAYA,SAASI,MAAM,GAAG,GAAG;QACnCP,OAAOG,QAAQ,CAACK,IAAI,IAAIL;IAC1B;IAEA,OAAOH;AACT;AAEA,gEAAgE;AAChE,yGAAyG;AACzG,SAASS,cAAcC,QAAkD;IACvE,OAAO,IAAIC,QAAc,CAACC,SAASC;QACjC,4DAA4D;QAC5D,OAAOH,SAASI,KAAK,CAAC,CAACC,MAAcA,MAAMF,OAAOE,OAAOH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