/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/esm/build
NameSizeModeActions
adapter/-0777rm
analysis/-0777rm
babel/-0777rm
manifests/-0777rm
next-config-ts/-0777rm
output/-0777rm
polyfills/-0777rm
segment-config/-0777rm
static-paths/-0777rm
swc/-0777rm
templates/-0777rm
turbopack-build/-0777rm
turborepo-access-trace/-0777rm
webpack/-0777rm
webpack-build/-0777rm
webpack-config-rules/-0777rm
after-production-compile.js16220666editdlrm
after-production-compile.js.map31390666editdlrm
build-context.js13530666editdlrm
build-context.js.map40560666editdlrm
collect-build-traces.js215980666editdlrm
collect-build-traces.js.map353920666editdlrm
compiler.js28840666editdlrm
compiler.js.map47860666editdlrm
create-compiler-aliases.js245640666editdlrm
create-compiler-aliases.js.map399610666editdlrm
define-env.js143350666editdlrm
define-env.js.map231660666editdlrm
deployment-id.js2180666editdlrm
deployment-id.js.map5060666editdlrm
duration-to-string.js5440666editdlrm
duration-to-string.js.map10840666editdlrm
entries.js362600666editdlrm
entries.js.map616600666editdlrm
generate-build-id.js7940666editdlrm
generate-build-id.js.map11980666editdlrm
get-babel-config-file.js6220666editdlrm
get-babel-config-file.js.map11000666editdlrm
get-babel-loader-config.js29370666editdlrm
get-babel-loader-config.js.map48850666editdlrm
handle-entrypoints.js45710666editdlrm
handle-entrypoints.js.map70760666editdlrm
handle-externals.js136230666editdlrm
handle-externals.js.map216530666editdlrm
index.js1472390666editdlrm
index.js.map2255750666editdlrm
is-writeable.js2620666editdlrm
is-writeable.js.map6350666editdlrm
load-entrypoint.js17000666editdlrm
load-entrypoint.js.map30980666editdlrm
load-jsconfig.js34510666editdlrm
load-jsconfig.js.map65080666editdlrm
next-dir-paths.js3010666editdlrm
next-dir-paths.js.map6810666editdlrm
normalize-catchall-routes.js41950666editdlrm
normalize-catchall-routes.js.map66430666editdlrm
page-extensions-type.js610666editdlrm
page-extensions-type.js.map1800666editdlrm
preview-key-utils.js34080666editdlrm
preview-key-utils.js.map59660666editdlrm
progress.js29490666editdlrm
progress.js.map45880666editdlrm
rendering-mode.js6180666editdlrm
rendering-mode.js.map7110666editdlrm
spinner.js28690666editdlrm
spinner.js.map49330666editdlrm
type-check.js52780666editdlrm
type-check.js.map92510666editdlrm
utils.js538060666editdlrm
utils.js.map953930666editdlrm
webpack-config.js1084980666editdlrm
webpack-config.js.map1582060666editdlrm
worker.js2060666editdlrm
worker.js.map4810666editdlrm
write-build-id.js3310666editdlrm
write-build-id.js.map7430666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/esm/build/load-entrypoint.js.map (3098B)
{"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":["fs","path","loadBindings","PACKAGE_ROOT","normalize","join","__dirname","TEMPLATE_SRC_FOLDER","TEMPLATES_ESM_FOLDER","loadEntrypoint","entrypoint","replacements","injections","imports","bindings","templatePath","resolve","content","readFile","expandNextJsTemplate","replace"],"mappings":"AAAA,OAAOA,QAAQ,cAAa;AAC5B,OAAOC,UAAU,OAAM;AACvB,SAASC,YAAY,QAAQ,QAAO;AAEpC,6DAA6D;AAC7D,MAAMC,eAAeF,KAAKG,SAAS,CAACH,KAAKI,IAAI,CAACC,WAAW;AACzD,MAAMC,sBAAsBN,KAAKG,SAAS,CAACH,KAAKI,IAAI,CAACC,WAAW;AAChE,MAAME,uBAAuBP,KAAKG,SAAS,CACzCH,KAAKI,IAAI,CAACC,WAAW;AAGvB;;;;;;;;;;;;;;;CAeC,GACD,OAAO,eAAeG,eACpBC,UAQe,EACfC,YAA6C,EAC7CC,UAAmC,EACnCC,OAAuC;IAEvC,IAAIC,WAAW,MAAMZ;IAErB,MAAMa,eAAed,KAAKe,OAAO,CAC/Bf,KAAKI,IAAI,CAACG,sBAAsB,GAAGE,WAAW,GAAG,CAAC;IAEpD,IAAIO,UAAU,MAAMjB,GAAGkB,QAAQ,CAACH;IAEhC,OAAOD,SAASK,oBAAoB,CAClCF,SACA,qEAAqE;IACrEhB,KAAKI,IAAI,CAACE,qBAAqB,GAAGG,WAAW,GAAG,CAAC,EAAEU,OAAO,CAAC,OAAO,MAClEjB,aAAaiB,OAAO,CAAC,OAAO,MAC5BT,cACAC,cAAc,CAAC,GACfC,WAAW,CAAC;AAEhB","ignoreList":[0]}