/opt/canhelp/node_modules/next/dist/build/webpack/loaders
NameSizeModeActions
css-loader/-0755rm
devtool/-0755rm
lightningcss-loader/-0755rm
metadata/-0755rm
next-app-loader/-0755rm
next-edge-app-route-loader/-0755rm
next-edge-ssr-loader/-0755rm
next-flight-loader/-0755rm
next-font-loader/-0755rm
next-image-loader/-0755rm
next-route-loader/-0755rm
next-style-loader/-0755rm
postcss-loader/-0755rm
resolve-url-loader/-0755rm
empty-loader.d.ts1560644editdlrm
empty-loader.js3200644editdlrm
empty-loader.js.map3880644editdlrm
error-loader.d.ts1560644editdlrm
error-loader.js14280644editdlrm
error-loader.js.map16740644editdlrm
get-module-build-info.d.ts14950644editdlrm
get-module-build-info.js3580644editdlrm
get-module-build-info.js.map19370644editdlrm
modularize-import-loader.d.ts6390644editdlrm
modularize-import-loader.js12550644editdlrm
modularize-import-loader.js.map17200644editdlrm
next-barrel-loader.d.ts31400644editdlrm
next-barrel-loader.js103450644editdlrm
next-barrel-loader.js.map155050644editdlrm
next-client-pages-loader.d.ts1860644editdlrm
next-client-pages-loader.js12380644editdlrm
next-client-pages-loader.js.map19060644editdlrm
next-edge-function-loader.d.ts3700644editdlrm
next-edge-function-loader.js19080644editdlrm
next-edge-function-loader.js.map32060644editdlrm
next-error-browser-binary-loader.d.ts1610644editdlrm
next-error-browser-binary-loader.js7140644editdlrm
next-error-browser-binary-loader.js.map9290644editdlrm
next-flight-action-entry-loader.d.ts4760644editdlrm
next-flight-action-entry-loader.js9720644editdlrm
next-flight-action-entry-loader.js.map19550644editdlrm
next-flight-client-entry-loader.d.ts6240644editdlrm
next-flight-client-entry-loader.js19780644editdlrm
next-flight-client-entry-loader.js.map41020644editdlrm
next-flight-client-module-loader.d.ts1820644editdlrm
next-flight-client-module-loader.js22350644editdlrm
next-flight-client-module-loader.js.map34240644editdlrm
next-flight-css-loader.d.ts4200644editdlrm
next-flight-css-loader.js20800644editdlrm
next-flight-css-loader.js.map30600644editdlrm
next-flight-server-reference-proxy-loader.d.ts2370644editdlrm
next-flight-server-reference-proxy-loader.js13340644editdlrm
next-flight-server-reference-proxy-loader.js.map18830644editdlrm
next-invalid-import-error-loader.d.ts2480644editdlrm
next-invalid-import-error-loader.js5680644editdlrm
next-invalid-import-error-loader.js.map7330644editdlrm
next-metadata-image-loader.d.ts5060644editdlrm
next-metadata-image-loader.js63130644editdlrm
next-metadata-image-loader.js.map96980644editdlrm
next-metadata-route-loader.d.ts3980644editdlrm
next-metadata-route-loader.js94230644editdlrm
next-metadata-route-loader.js.map137040644editdlrm
next-middleware-asset-loader.d.ts1150644editdlrm
next-middleware-asset-loader.js13320644editdlrm
next-middleware-asset-loader.js.map15310644editdlrm
next-middleware-loader.d.ts5300644editdlrm
next-middleware-loader.js20220644editdlrm
next-middleware-loader.js.map35720644editdlrm
next-middleware-wasm-loader.d.ts1140644editdlrm
next-middleware-wasm-loader.js12720644editdlrm
next-middleware-wasm-loader.js.map14890644editdlrm
next-root-params-loader.d.ts2780644editdlrm
next-root-params-loader.js66300644editdlrm
next-root-params-loader.js.map85330644editdlrm
next-swc-loader.d.ts8660644editdlrm
next-swc-loader.js110420644editdlrm
next-swc-loader.js.map149970644editdlrm
utils.d.ts5890644editdlrm
utils.js37710644editdlrm
utils.js.map58870644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/build/webpack/loaders/utils.js.map (5887B)
{"version":3,"sources":["../../../../src/build/webpack/loaders/utils.ts"],"sourcesContent":["import type webpack from 'webpack'\nimport { RSC_MODULE_TYPES } from '../../../shared/lib/constants'\nimport { getModuleBuildInfo } from './get-module-build-info'\n\nconst imageExtensions = ['jpg', 'jpeg', 'png', 'webp', 'avif', 'ico', 'svg']\nconst imageRegex = new RegExp(`\\\\.(${imageExtensions.join('|')})$`)\n\n// Determine if the whole module is client action, 'use server' in nested closure in the client module\nfunction isActionClientLayerModule(mod: webpack.NormalModule) {\n const rscInfo = getModuleBuildInfo(mod).rsc\n return !!(rscInfo?.actionIds && rscInfo?.type === RSC_MODULE_TYPES.client)\n}\n\nexport function isClientComponentEntryModule(mod: webpack.NormalModule) {\n const rscInfo = getModuleBuildInfo(mod).rsc\n const hasClientDirective = rscInfo?.isClientRef\n const isActionLayerEntry = isActionClientLayerModule(mod)\n return (\n hasClientDirective || isActionLayerEntry || imageRegex.test(mod.resource)\n )\n}\n\nexport const regexCSS = /\\.(css|scss|sass)(\\?.*)?$/\n\n// This function checks if a module is able to emit CSS resources. You should\n// never only rely on a single regex to do that.\nexport function isCSSMod(mod: {\n resource: string\n type?: string\n loaders?: { loader: string }[]\n}): boolean {\n return !!(\n mod.type === 'css/mini-extract' ||\n (mod.resource && regexCSS.test(mod.resource)) ||\n mod.loaders?.some(\n ({ loader }) =>\n loader.includes('next-style-loader/index.js') ||\n (process.env.NEXT_RSPACK &&\n loader.includes('rspack.CssExtractRspackPlugin.loader')) ||\n loader.includes('mini-css-extract-plugin/loader.js') ||\n loader.includes('@vanilla-extract/webpack-plugin/loader/')\n )\n )\n}\n\nexport function encodeToBase64(obj: T): string {\n return Buffer.from(JSON.stringify(obj)).toString('base64')\n}\n\nexport function decodeFromBase64(str: string): T {\n return JSON.parse(Buffer.from(str, 'base64').toString('utf8'))\n}\n\nexport async function getLoaderModuleNamedExports(\n resourcePath: string,\n context: webpack.LoaderContext\n): Promise {\n if (process.env.NEXT_RSPACK) {\n // Currently, the loadModule method is not supported in Rspack.\n // Use getModuleNamedExports (implemented by us using SWC) to extract named exports from the module.\n const binding = require('../../swc') as typeof import('../../swc')\n return binding.getModuleNamedExports(resourcePath)\n }\n\n const mod = await new Promise((res, rej) => {\n context.loadModule(\n resourcePath,\n (err: null | Error, _source: any, _sourceMap: any, module: any) => {\n if (err) {\n return rej(err)\n }\n res(module)\n }\n )\n })\n\n const exportNames =\n mod.dependencies\n ?.filter((dep) => {\n return (\n [\n 'HarmonyExportImportedSpecifierDependency',\n 'HarmonyExportSpecifierDependency',\n ].includes(dep.constructor.name) &&\n 'name' in dep &&\n dep.name !== 'default'\n )\n })\n .map((dep: any) => {\n return dep.name\n }) || []\n return exportNames\n}\n"],"names":["decodeFromBase64","encodeToBase64","getLoaderModuleNamedExports","isCSSMod","isClientComponentEntryModule","regexCSS","imageExtensions","imageRegex","RegExp","join","isActionClientLayerModule","mod","rscInfo","getModuleBuildInfo","rsc","actionIds","type","RSC_MODULE_TYPES","client","hasClientDirective","isClientRef","isActionLayerEntry","test","resource","loaders","some","loader","includes","process","env","NEXT_RSPACK","obj","Buffer","from","JSON","stringify","toString","str","parse","resourcePath","context","binding","require","getModuleNamedExports","Promise","res","rej","loadModule","err","_source","_sourceMap","module","exportNames","dependencies","filter","dep","constructor","name","map"],"mappings":";;;;;;;;;;;;;;;;;;;IAiDgBA,gBAAgB;eAAhBA;;IAJAC,cAAc;eAAdA;;IAQMC,2BAA2B;eAA3BA;;IA3BNC,QAAQ;eAARA;;IAbAC,4BAA4B;eAA5BA;;IASHC,QAAQ;eAARA;;;2BArBoB;oCACE;AAEnC,MAAMC,kBAAkB;IAAC;IAAO;IAAQ;IAAO;IAAQ;IAAQ;IAAO;CAAM;AAC5E,MAAMC,aAAa,IAAIC,OAAO,CAAC,IAAI,EAAEF,gBAAgBG,IAAI,CAAC,KAAK,EAAE,CAAC;AAElE,sGAAsG;AACtG,SAASC,0BAA0BC,GAAyB;IAC1D,MAAMC,UAAUC,IAAAA,sCAAkB,EAACF,KAAKG,GAAG;IAC3C,OAAO,CAAC,CAAEF,CAAAA,CAAAA,2BAAAA,QAASG,SAAS,KAAIH,CAAAA,2BAAAA,QAASI,IAAI,MAAKC,2BAAgB,CAACC,MAAM,AAAD;AAC1E;AAEO,SAASd,6BAA6BO,GAAyB;IACpE,MAAMC,UAAUC,IAAAA,sCAAkB,EAACF,KAAKG,GAAG;IAC3C,MAAMK,qBAAqBP,2BAAAA,QAASQ,WAAW;IAC/C,MAAMC,qBAAqBX,0BAA0BC;IACrD,OACEQ,sBAAsBE,sBAAsBd,WAAWe,IAAI,CAACX,IAAIY,QAAQ;AAE5E;AAEO,MAAMl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