Rocky_Mountain_Vending/.pnpm-store/v10/files/40/c4ffdea303bbf6afd4fab74516dbe9f80bedeb7a194a3e6a13cb50acf59c1403108b6bf1625e7413cd99de597b47ab1f0766e89e6e5226b37caa67ce2626e5
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

1 line
No EOL
5.7 KiB
Text

{"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<T extends object>(obj: T): string {\n return Buffer.from(JSON.stringify(obj)).toString('base64')\n}\n\nexport function decodeFromBase64<T extends object>(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<any>\n): Promise<string[]> {\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<webpack.NormalModule>((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":["RSC_MODULE_TYPES","getModuleBuildInfo","imageExtensions","imageRegex","RegExp","join","isActionClientLayerModule","mod","rscInfo","rsc","actionIds","type","client","isClientComponentEntryModule","hasClientDirective","isClientRef","isActionLayerEntry","test","resource","regexCSS","isCSSMod","loaders","some","loader","includes","process","env","NEXT_RSPACK","encodeToBase64","obj","Buffer","from","JSON","stringify","toString","decodeFromBase64","str","parse","getLoaderModuleNamedExports","resourcePath","context","binding","require","getModuleNamedExports","Promise","res","rej","loadModule","err","_source","_sourceMap","module","exportNames","dependencies","filter","dep","constructor","name","map"],"mappings":"AACA,SAASA,gBAAgB,QAAQ,gCAA+B;AA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