Rocky_Mountain_Vending/.pnpm-store/v10/files/98/e96b2f1cecd179abb0b459f1652a49c486cba601194d389d681d37928236bcf0df0043bb09512272711541658659859ecf70855d687ce75b9ad11baf61e2be
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

57 lines
No EOL
2.1 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "NextJsRequireCacheHotReloader", {
enumerable: true,
get: function() {
return NextJsRequireCacheHotReloader;
}
});
const _requirecache = require("../../../server/dev/require-cache");
const _sandbox = require("../../../server/web/sandbox");
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
const RUNTIME_NAMES = [
'webpack-runtime',
'webpack-api-runtime'
];
const PLUGIN_NAME = 'NextJsRequireCacheHotReloader';
class NextJsRequireCacheHotReloader {
constructor(opts){
this.prevAssets = null;
this.serverComponents = opts.serverComponents;
}
apply(compiler) {
compiler.hooks.assetEmitted.tap(PLUGIN_NAME, (_file, { targetPath })=>{
// Clear module context in this process
(0, _sandbox.clearModuleContext)(targetPath);
(0, _requirecache.deleteCache)(targetPath);
});
compiler.hooks.afterEmit.tapPromise(PLUGIN_NAME, async (compilation)=>{
for (const name of RUNTIME_NAMES){
const runtimeChunkPath = _path.default.join(compilation.outputOptions.path, `${name}.js`);
(0, _requirecache.deleteCache)(runtimeChunkPath);
}
// we need to make sure to clear all server entries from cache
// since they can have a stale webpack-runtime cache
// which needs to always be in-sync
const entries = [
...compilation.entrypoints.keys()
].filter((entry)=>{
const isAppPath = entry.toString().startsWith('app/');
return entry.toString().startsWith('pages/') || isAppPath;
});
for (const page of entries){
const outputPath = _path.default.join(compilation.outputOptions.path, page + '.js');
(0, _requirecache.deleteCache)(outputPath);
}
});
}
}
//# sourceMappingURL=nextjs-require-cache-hot-reloader.js.map