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
2.6 KiB
Text
1 line
No EOL
2.6 KiB
Text
{"version":3,"sources":["../../../../../src/build/webpack/plugins/wellknown-errors-plugin/parseScss.ts"],"sourcesContent":["import { bold, cyan, red, yellow } from '../../../../lib/picocolors'\nimport { SimpleWebpackError } from './simpleWebpackError'\n\nconst regexScssError =\n /SassError: (.+)\\n\\s+on line (\\d+) [\\s\\S]*?>> (.+)\\n\\s*(-+)\\^$/m\n\nexport function getScssError(\n fileName: string,\n fileContent: string | null,\n err: Error\n): SimpleWebpackError | false {\n if (err.name !== 'SassError') {\n return false\n }\n\n const res = regexScssError.exec(err.message)\n if (res) {\n const [, reason, _lineNumer, backupFrame, columnString] = res\n const lineNumber = Math.max(1, parseInt(_lineNumer, 10))\n const column = columnString?.length ?? 1\n\n let frame: string | undefined\n if (fileContent) {\n try {\n const { codeFrameColumns } =\n require('next/dist/compiled/babel/code-frame') as typeof import('next/dist/compiled/babel/code-frame')\n frame = codeFrameColumns(\n fileContent,\n { start: { line: lineNumber, column } },\n { forceColor: true }\n ) as string\n } catch {}\n }\n\n return new SimpleWebpackError(\n `${cyan(fileName)}:${yellow(lineNumber.toString())}:${yellow(\n column.toString()\n )}`,\n red(bold('Syntax error')).concat(`: ${reason}\\n\\n${frame ?? backupFrame}`)\n )\n }\n\n return false\n}\n"],"names":["bold","cyan","red","yellow","SimpleWebpackError","regexScssError","getScssError","fileName","fileContent","err","name","res","exec","message","reason","_lineNumer","backupFrame","columnString","lineNumber","Math","max","parseInt","column","length","frame","codeFrameColumns","require","start","line","forceColor","toString","concat"],"mappings":"AAAA,SAASA,IAAI,EAAEC,IAAI,EAAEC,GAAG,EAAEC,MAAM,QAAQ,6BAA4B;AACpE,SAASC,kBAAkB,QAAQ,uBAAsB;AAEzD,MAAMC,iBACJ;AAEF,OAAO,SAASC,aACdC,QAAgB,EAChBC,WAA0B,EAC1BC,GAAU;IAEV,IAAIA,IAAIC,IAAI,KAAK,aAAa;QAC5B,OAAO;IACT;IAEA,MAAMC,MAAMN,eAAeO,IAAI,CAACH,IAAII,OAAO;IAC3C,IAAIF,KAAK;QACP,MAAM,GAAGG,QAAQC,YAAYC,aAAaC,aAAa,GAAGN;QAC1D,MAAMO,aAAaC,KAAKC,GAAG,CAAC,GAAGC,SAASN,YAAY;QACpD,MAAMO,SAASL,CAAAA,gCAAAA,aAAcM,MAAM,KAAI;QAEvC,IAAIC;QACJ,IAAIhB,aAAa;YACf,IAAI;gBACF,MAAM,EAAEiB,gBAAgB,EAAE,GACxBC,QAAQ;gBACVF,QAAQC,iBACNjB,aACA;oBAAEmB,OAAO;wBAAEC,MAAMV;wBAAYI;oBAAO;gBAAE,GACtC;oBAAEO,YAAY;gBAAK;YAEvB,EAAE,OAAM,CAAC;QACX;QAEA,OAAO,IAAIzB,mBACT,GAAGH,KAAKM,UAAU,CAAC,EAAEJ,OAAOe,WAAWY,QAAQ,IAAI,CAAC,EAAE3B,OACpDmB,OAAOQ,QAAQ,KACd,EACH5B,IAAIF,KAAK,iBAAiB+B,MAAM,CAAC,CAAC,EAAE,EAAEjB,OAAO,IAAI,EAAEU,SAASR,aAAa;IAE7E;IAEA,OAAO;AACT","ignoreList":[0]} |