/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/load-entrypoint.js.map (3107B)
{"version":3,"sources":["../../src/build/load-entrypoint.ts"],"sourcesContent":["import fs from 'fs/promises'\nimport path from 'path'\nimport { loadBindings } from './swc'\n\n// NOTE: this should be updated if this loader file is moved.\nconst PACKAGE_ROOT = path.normalize(path.join(__dirname, '../..'))\nconst TEMPLATE_SRC_FOLDER = path.normalize(path.join(__dirname, './templates'))\nconst TEMPLATES_ESM_FOLDER = path.normalize(\n path.join(__dirname, '../../dist/esm/build/templates')\n)\n\n/**\n * Load the entrypoint file from the ESM directory and performs string\n * replacements of the template variables specified in the `replacements`\n * argument.\n *\n * For non-string replacements, the template should use the\n * `declare const ${key}: ${type}` syntax. to ensure that the type is correct\n * and the typescript can compile. You may have to use `@ts-expect-error` to\n * handle replacement values that are related to imports.\n *\n * @param entrypoint the entrypoint to load\n * @param replacements string replacements to perform\n * @param injections code injections to perform\n * @param imports optional imports to insert or set to null\n * @returns the loaded file with the replacements\n */\nexport async function loadEntrypoint(\n entrypoint:\n | 'app-page'\n | 'app-route'\n | 'edge-app-route'\n | 'edge-ssr'\n | 'edge-ssr-app'\n | 'middleware'\n | 'pages'\n | 'pages-api',\n replacements: Record<`VAR_${string}`, string>,\n injections?: Record,\n imports?: Record\n): Promise {\n let bindings = await loadBindings()\n\n const templatePath = path.resolve(\n path.join(TEMPLATES_ESM_FOLDER, `${entrypoint}.js`)\n )\n let content = await fs.readFile(templatePath)\n\n return bindings.expandNextJsTemplate(\n content,\n // Ensure that we use unix-style path separators for the import paths\n path.join(TEMPLATE_SRC_FOLDER, `${entrypoint}.js`).replace(/\\\\/g, '/'),\n PACKAGE_ROOT.replace(/\\\\/g, '/'),\n replacements,\n injections ?? {},\n imports ?? {}\n )\n}\n"],"names":["loadEntrypoint","PACKAGE_ROOT","path","normalize","join","__dirname","TEMPLATE_SRC_FOLDER","TEMPLATES_ESM_FOLDER","entrypoint","replacements","injections","imports","bindings","loadBindings","templatePath","resolve","content","fs","readFile","expandNextJsTemplate","replace"],"mappings":";;;;+BA2BsBA;;;eAAAA;;;iEA3BP;6DACE;qBACY;;;;;;AAE7B,6DAA6D;AAC7D,MAAMC,eAAeC,aAAI,CAACC,SAAS,CAACD,aAAI,CAACE,IAAI,CAACC,WAAW;AACzD,MAAMC,sBAAsBJ,aAAI,CAACC,SAAS,CAACD,aAAI,CAACE,IAAI,CAACC,WAAW;AAChE,MAAME,uBAAuBL,aAAI,CAACC,SAAS,CACzCD,aAAI,CAACE,IAAI,CAACC,WAAW;AAmBhB,eAAeL,eACpBQ,UAQe,EACfC,YAA6C,EAC7CC,UAAmC,EACnCC,OAAuC;IAEvC,IAAIC,WAAW,MAAMC,IAAAA,iBAAY;IAEjC,MAAMC,eAAeZ,aAAI,CAACa,OAAO,CAC/Bb,aAAI,CAACE,IAAI,CAACG,sBAAsB,GAAGC,WAAW,GAAG,CAAC;IAEpD,IAAIQ,UAAU,MAAMC,iBAAE,CAACC,QAAQ,CAACJ;IAEhC,OAAOF,SAASO,oBAAoB,CAClCH,SACA,qEAAqE;IACrEd,aAAI,CAACE,IAAI,CAACE,qBAAqB,GAAGE,WAAW,GAAG,CAAC,EAAEY,OAAO,CAAC,OAAO,MAClEnB,aAAamB,OAAO,CAAC,OAAO,MAC5BX,cACAC,cAAc,CAAC,GACfC,WAAW,CAAC;AAEhB","ignoreList":[0]}