Rocky_Mountain_Vending/.pnpm-store/v10/files/9d/57602a01cab083b91050ec65e064c893294a1f5f5325279e0b2c85043567ee11027fe72771f5fcdccf54016506339117c99221c77799ad0712467e7f112348
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

33 lines
No EOL
1.6 KiB
Text

import { getModuleBuildError } from './webpackModuleError';
const NAME = 'WellKnownErrorsPlugin';
export class WellKnownErrorsPlugin {
apply(compiler) {
compiler.hooks.compilation.tap(NAME, (compilation)=>{
compilation.hooks.afterSeal.tapPromise(NAME, async ()=>{
var _compilation_warnings, _compilation_errors;
if ((_compilation_warnings = compilation.warnings) == null ? void 0 : _compilation_warnings.length) {
await Promise.all(compilation.warnings.map(async (warn, i)=>{
var _warn_module_context, _warn_module;
if (warn.name === 'ModuleDependencyWarning' && ((_warn_module = warn.module) == null ? void 0 : (_warn_module_context = _warn_module.context) == null ? void 0 : _warn_module_context.includes('node_modules'))) {
compilation.warnings.splice(i, 1);
}
}));
}
if ((_compilation_errors = compilation.errors) == null ? void 0 : _compilation_errors.length) {
await Promise.all(compilation.errors.map(async (err, i)=>{
try {
const moduleError = await getModuleBuildError(compiler, compilation, err);
if (moduleError !== false) {
compilation.errors[i] = moduleError;
}
} catch (e) {
console.log(e);
}
}));
}
});
});
}
}
//# sourceMappingURL=index.js.map