/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 (3771B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { decodeFromBase64: null, encodeToBase64: null, getLoaderModuleNamedExports: null, isCSSMod: null, isClientComponentEntryModule: null, regexCSS: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { decodeFromBase64: function() { return decodeFromBase64; }, encodeToBase64: function() { return encodeToBase64; }, getLoaderModuleNamedExports: function() { return getLoaderModuleNamedExports; }, isCSSMod: function() { return isCSSMod; }, isClientComponentEntryModule: function() { return isClientComponentEntryModule; }, regexCSS: function() { return regexCSS; } }); const _constants = require("../../../shared/lib/constants"); const _getmodulebuildinfo = require("./get-module-build-info"); const imageExtensions = [ 'jpg', 'jpeg', 'png', 'webp', 'avif', 'ico', 'svg' ]; const imageRegex = new RegExp(`\\.(${imageExtensions.join('|')})$`); // Determine if the whole module is client action, 'use server' in nested closure in the client module function isActionClientLayerModule(mod) { const rscInfo = (0, _getmodulebuildinfo.getModuleBuildInfo)(mod).rsc; return !!((rscInfo == null ? void 0 : rscInfo.actionIds) && (rscInfo == null ? void 0 : rscInfo.type) === _constants.RSC_MODULE_TYPES.client); } function isClientComponentEntryModule(mod) { const rscInfo = (0, _getmodulebuildinfo.getModuleBuildInfo)(mod).rsc; const hasClientDirective = rscInfo == null ? void 0 : rscInfo.isClientRef; const isActionLayerEntry = isActionClientLayerModule(mod); return hasClientDirective || isActionLayerEntry || imageRegex.test(mod.resource); } const regexCSS = /\.(css|scss|sass)(\?.*)?$/; function isCSSMod(mod) { var _mod_loaders; return !!(mod.type === 'css/mini-extract' || mod.resource && regexCSS.test(mod.resource) || ((_mod_loaders = mod.loaders) == null ? void 0 : _mod_loaders.some(({ loader })=>loader.includes('next-style-loader/index.js') || process.env.NEXT_RSPACK && loader.includes('rspack.CssExtractRspackPlugin.loader') || loader.includes('mini-css-extract-plugin/loader.js') || loader.includes('@vanilla-extract/webpack-plugin/loader/')))); } function encodeToBase64(obj) { return Buffer.from(JSON.stringify(obj)).toString('base64'); } function decodeFromBase64(str) { return JSON.parse(Buffer.from(str, 'base64').toString('utf8')); } async function getLoaderModuleNamedExports(resourcePath, context) { var _mod_dependencies; if (process.env.NEXT_RSPACK) { // Currently, the loadModule method is not supported in Rspack. // Use getModuleNamedExports (implemented by us using SWC) to extract named exports from the module. const binding = require('../../swc'); return binding.getModuleNamedExports(resourcePath); } const mod = await new Promise((res, rej)=>{ context.loadModule(resourcePath, (err, _source, _sourceMap, module1)=>{ if (err) { return rej(err); } res(module1); }); }); const exportNames = ((_mod_dependencies = mod.dependencies) == null ? void 0 : _mod_dependencies.filter((dep)=>{ return [ 'HarmonyExportImportedSpecifierDependency', 'HarmonyExportSpecifierDependency' ].includes(dep.constructor.name) && 'name' in dep && dep.name !== 'default'; }).map((dep)=>{ return dep.name; })) || []; return exportNames; } //# sourceMappingURL=utils.js.map