Rocky_Mountain_Vending/.pnpm-store/v10/files/48/49561db3bfc3fb1be7c88007aacd174defdd5ac8f8fbaae1346021a67856f05a9a056a45c8ae8034d18ddc949ac0e7f24166d276a43de2bbb3d628f85a1c7d
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":["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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