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>
1 line
No EOL
5.5 KiB
Text
1 line
No EOL
5.5 KiB
Text
{"version":3,"sources":["../../../../../../../src/build/webpack/config/blocks/css/loaders/modules.ts"],"sourcesContent":["import type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type { ConfigurationContext } from '../../../utils'\nimport { getClientStyleLoader } from './client'\nimport { cssFileResolve } from './file-resolve'\nimport { getCssModuleLocalIdent } from './getCssModuleLocalIdent'\n\nexport function getCssModuleLoader(\n ctx: ConfigurationContext,\n postcss: any,\n preProcessors: readonly webpack.RuleSetUseItem[] = []\n): webpack.RuleSetUseItem[] {\n const loaders: webpack.RuleSetUseItem[] = []\n\n if (ctx.isClient) {\n // Add appropriate development more or production mode style\n // loader\n loaders.push(\n getClientStyleLoader({\n hasAppDir: ctx.hasAppDir,\n isAppDir: ctx.isAppDir,\n isDevelopment: ctx.isDevelopment,\n assetPrefix: ctx.assetPrefix,\n experimentalInlineCss: ctx.experimental.inlineCss,\n })\n )\n }\n\n if (ctx.experimental.useLightningcss) {\n loaders.push({\n loader: require.resolve('../../../../loaders/lightningcss-loader/src'),\n options: {\n importLoaders: 1 + preProcessors.length,\n url: (url: string, resourcePath: string) =>\n cssFileResolve(url, resourcePath, ctx.experimental.urlImports),\n import: (url: string, _: any, resourcePath: string) =>\n cssFileResolve(url, resourcePath, ctx.experimental.urlImports),\n modules: {\n // Do not transform class names (CJS mode backwards compatibility):\n exportLocalsConvention: 'asIs',\n // Server-side (Node.js) rendering support:\n exportOnlyLocals: ctx.isServer,\n },\n targets: ctx.supportedBrowsers,\n postcss,\n },\n })\n } else {\n // Resolve CSS `@import`s and `url()`s\n loaders.push({\n loader: require.resolve('../../../../loaders/css-loader/src'),\n options: {\n postcss,\n importLoaders: 1 + preProcessors.length,\n // Use CJS mode for backwards compatibility:\n esModule: false,\n url: (url: string, resourcePath: string) =>\n cssFileResolve(url, resourcePath, ctx.experimental.urlImports),\n import: (url: string, _: any, resourcePath: string) =>\n cssFileResolve(url, resourcePath, ctx.experimental.urlImports),\n modules: {\n // Do not transform class names (CJS mode backwards compatibility):\n exportLocalsConvention: 'asIs',\n // Server-side (Node.js) rendering support:\n exportOnlyLocals: ctx.isServer,\n // Disallow global style exports so we can code-split CSS and\n // not worry about loading order.\n mode: 'pure',\n // Generate a friendly production-ready name so it's\n // reasonably understandable. The same name is used for\n // development.\n // TODO: Consider making production reduce this to a single\n // character?\n getLocalIdent: getCssModuleLocalIdent,\n },\n },\n })\n\n // Compile CSS\n loaders.push({\n loader: require.resolve('../../../../loaders/postcss-loader/src'),\n options: {\n postcss,\n },\n })\n }\n\n loaders.push(\n // Webpack loaders run like a stack, so we need to reverse the natural\n // order of preprocessors.\n ...preProcessors.slice().reverse()\n )\n\n return loaders\n}\n"],"names":["getCssModuleLoader","ctx","postcss","preProcessors","loaders","isClient","push","getClientStyleLoader","hasAppDir","isAppDir","isDevelopment","assetPrefix","experimentalInlineCss","experimental","inlineCss","useLightningcss","loader","require","resolve","options","importLoaders","length","url","resourcePath","cssFileResolve","urlImports","import","_","modules","exportLocalsConvention","exportOnlyLocals","isServer","targets","supportedBrowsers","esModule","mode","getLocalIdent","getCssModuleLocalIdent","slice","reverse"],"mappings":";;;;+BAMgBA;;;eAAAA;;;wBAJqB;6BACN;wCACQ;AAEhC,SAASA,mBACdC,GAAyB,EACzBC,OAAY,EACZC,gBAAmD,EAAE;IAErD,MAAMC,UAAoC,EAAE;IAE5C,IAAIH,IAAII,QAAQ,EAAE;QAChB,4DAA4D;QAC5D,SAAS;QACTD,QAAQE,IAAI,CACVC,IAAAA,4BAAoB,EAAC;YACnBC,WAAWP,IAAIO,SAAS;YACxBC,UAAUR,IAAIQ,QAAQ;YACtBC,eAAeT,IAAIS,aAAa;YAChCC,aAAaV,IAAIU,WAAW;YAC5BC,uBAAuBX,I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