/opt/canhelp/node_modules/next/dist/build
NameSizeModeActions
adapter/-0755rm
analysis/-0755rm
babel/-0755rm
jest/-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.d.ts4310644editdlrm
after-production-compile.js33390644editdlrm
after-production-compile.js.map31290644editdlrm
build-context.d.ts20570644editdlrm
build-context.js16030644editdlrm
build-context.js.map40420644editdlrm
collect-build-traces.d.ts7570644editdlrm
collect-build-traces.js242760644editdlrm
collect-build-traces.js.map355400644editdlrm
compiler.d.ts5430644editdlrm
compiler.js32620644editdlrm
compiler.js.map48020644editdlrm
create-compiler-aliases.d.ts13070644editdlrm
create-compiler-aliases.js270860644editdlrm
create-compiler-aliases.js.map399590644editdlrm
define-env.d.ts12590644editdlrm
define-env.js147490644editdlrm
define-env.js.map231420644editdlrm
deployment-id.d.ts690644editdlrm
deployment-id.js4660644editdlrm
deployment-id.js.map5230644editdlrm
duration-to-string.d.ts760644editdlrm
duration-to-string.js7580644editdlrm
duration-to-string.js.map11010644editdlrm
entries.d.ts82020644editdlrm
entries.js378860644editdlrm
entries.js.map620370644editdlrm
generate-build-id.d.ts1380644editdlrm
generate-build-id.js10060644editdlrm
generate-build-id.js.map12150644editdlrm
get-babel-config-file.d.ts770644editdlrm
get-babel-config-file.js8560644editdlrm
get-babel-config-file.js.map10980644editdlrm
get-babel-loader-config.d.ts17130644editdlrm
get-babel-loader-config.js35570644editdlrm
get-babel-loader-config.js.map48960644editdlrm
handle-entrypoints.d.ts4700644editdlrm
handle-entrypoints.js65600644editdlrm
handle-entrypoints.js.map71740644editdlrm
handle-externals.d.ts14150644editdlrm
handle-externals.js144260644editdlrm
handle-externals.js.map216040644editdlrm
index.d.ts93240644editdlrm
index.js1538270644editdlrm
index.js.map2263100644editdlrm
is-writeable.d.ts740644editdlrm
is-writeable.js6530644editdlrm
is-writeable.js.map6560644editdlrm
load-entrypoint.d.ts10090644editdlrm
load-entrypoint.js15200644editdlrm
load-entrypoint.js.map31070644editdlrm
load-jsconfig.d.ts5140644editdlrm
load-jsconfig.js56930644editdlrm
load-jsconfig.js.map65350644editdlrm
next-dir-paths.d.ts1610644editdlrm
next-dir-paths.js11200644editdlrm
next-dir-paths.js.map7350644editdlrm
normalize-catchall-routes.d.ts6090644editdlrm
normalize-catchall-routes.js40820644editdlrm
normalize-catchall-routes.js.map66120644editdlrm
page-extensions-type.d.ts390644editdlrm
page-extensions-type.js1300644editdlrm
page-extensions-type.js.map670644editdlrm
preview-key-utils.d.ts2060644editdlrm
preview-key-utils.js37110644editdlrm
preview-key-utils.js.map59200644editdlrm
progress.d.ts1200644editdlrm
progress.js47460644editdlrm
progress.js.map46250644editdlrm
rendering-mode.d.ts5060644editdlrm
rendering-mode.js8260644editdlrm
rendering-mode.js.map7210644editdlrm
spinner.d.ts2180644editdlrm
spinner.js46630644editdlrm
spinner.js.map49780644editdlrm
type-check.d.ts5700644editdlrm
type-check.js72260644editdlrm
type-check.js.map92270644editdlrm
utils.d.ts87460644editdlrm
utils.js604000644editdlrm
utils.js.map959230644editdlrm
webpack-config.d.ts47890644editdlrm
webpack-config.js1137040644editdlrm
webpack-config.js.map1582530644editdlrm
worker.d.ts1720644editdlrm
worker.js8900644editdlrm
worker.js.map5230644editdlrm
write-build-id.d.ts870644editdlrm
write-build-id.js5590644editdlrm
write-build-id.js.map7180644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/build/compiler.js.map (4802B)
{"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":["runCompiler","generateStats","result","stat","errors","warnings","toJson","preset","moduleTrace","length","push","closeCompiler","compiler","Promise","resolve","reject","close","err","config","runWebpackSpan","inputFileSystem","getWebpackBundler","fsStartTime","Date","now","run","stats","webpackCloseSpan","traceChild","name","traceAsyncFn","then","reason","stack","toString","message","details","Error","traceFn"],"mappings":";;;;+BAsCgBA;;;eAAAA;;;0EApCc;;;;;;AAQ9B,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;IAC3D;AACF;AAEO,SAASd,YACdkB,MAA6B,EAC7B,EACEC,cAAc,EACdC,eAAe,EAIhB;IAOD,OAAO,IAAIP,QAAQ,CAACC,SAASC;QAC3B,MAAMH,WAAWS,IAAAA,0BAAiB,IAAGH;QAErC,6CAA6C;QAC7C,IAAIE,iBAAiB;YACnBR,SAASQ,eAAe,GAAGA;QAC7B;QACAR,SAASU,WAAW,GAAGC,KAAKC,GAAG;QAC/BZ,SAASa,GAAG,CAAC,CAACR,KAAKS;YACjB,MAAMC,mBAAmBR,eAAeS,UAAU,CAAC,iBAAiB;gBAClEC,MAAMX,OAAOW,IAAI,IAAI;YACvB;YACAF,iBACGG,YAAY,CAAC,IAAMnB,cAAcC,WACjCmB,IAAI,CAAC;gBACJ,IAAId,KAAK;oBACP,MAAMe,SAASf,IAAIgB,KAAK,IAAIhB,I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