Vite plugin that patches ant-design-vue@1.7.8 (unmaintained) for Vue 2 + Vite projects. Fixes two critical runtime errors: 'require is not defined' in production builds (due to CJS/ESM incompatibility) and 'moment.isMoment is not exported by default' (missing named export). No active development; last updated February 2022. Alternative: upgrade to ant-design-vue v3+ (Vue 3) or use @ant-design-vue/p shortly for v1 fixes.
npm install vite-plugin-antdv-fixVerified import paths — ran on the pinned version, not inferred.
Configure Vite plugin to fix ant-design-vue@1.7.8 runtime errors in production builds.
Use antdvFix() with ant-design-vue exactly 1.7.8.
Consider forking or migrating to Vue 3 + ant-design-vue v3+.
Test thoroughly in production build; adjust plugin order if needed.
Install and apply vite-plugin-antdv-fix: `npm i -D vite-plugin-antdv-fix` then add `antdvFix()` to plugins.
Use vite-plugin-antdv-fix which patches the default export to include isMoment.