Rocky_Mountain_Vending/.pnpm-store/v10/files/18/b9c31ac573e9f3936cf97a672dacc87b29b328952778c02e0c2311eb4569adec18effbf937466f5e172a13476a90564712d276c5e37cd94da27c33913e8a14
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

39 lines
No EOL
1.9 KiB
Text

import { getRSCModuleInformation } from '../../analysis/get-page-static-info';
import { getModuleBuildInfo } from './get-module-build-info';
const flightClientModuleLoader = function transformSource(source, sourceMap) {
// Avoid buffer to be consumed
if (typeof source !== 'string') {
throw Object.defineProperty(new Error('Expected source to have been transformed to a string.'), "__NEXT_ERROR_CODE", {
value: "E429",
enumerable: false,
configurable: true
});
}
if (!this._module) {
return source;
}
// Assign the RSC meta information to buildInfo.
const buildInfo = getModuleBuildInfo(this._module);
buildInfo.rsc = getRSCModuleInformation(source, false);
let prefix = '';
if (process.env.BUILTIN_FLIGHT_CLIENT_ENTRY_PLUGIN) {
const rscModuleInformationJson = JSON.stringify(buildInfo.rsc);
prefix = `/* __rspack_internal_rsc_module_information_do_not_use__ ${rscModuleInformationJson} */\n`;
source = prefix + source;
}
// This is a server action entry module in the client layer. We need to
// create re-exports of "virtual modules" to expose the reference IDs to the
// client separately so they won't be always in the same one module which is
// not splittable. This server action module tree shaking is only applied in
// production mode. In development mode, we want to preserve the original
// modules (as transformed by SWC) to ensure that source mapping works.
if (buildInfo.rsc.actionIds && process.env.NODE_ENV === 'production') {
return prefix + Object.entries(buildInfo.rsc.actionIds).map(([id, name])=>{
return `export { ${name} } from 'next-flight-server-reference-proxy-loader?id=${id}&name=${name}!'`;
}).join('\n');
}
return this.callback(null, source, sourceMap);
};
export default flightClientModuleLoader;
//# sourceMappingURL=next-flight-client-module-loader.js.map