mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 16:23:23 +00:00
🚀 FINAL FIX: Standard dynamic imports with proper async handling
- Replace Function() constructor imports with standard dynamic imports - Add proper state management for template engine loading (null | false | Liquid) - Fix async initialization timing issues with lazy loading - Add mustache type declarations for TypeScript compatibility - Prevent retry attempts on failed module loads - Ensure webpack/bundler compatibility across all environments All webpack compatibility issues now fully resolved. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
7
src/types/mustache.d.ts
vendored
Normal file
7
src/types/mustache.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
declare module 'mustache' {
|
||||
interface MustacheStatic {
|
||||
render(template: string, view?: any, partials?: any, tags?: string[]): string
|
||||
}
|
||||
const mustache: MustacheStatic
|
||||
export = mustache
|
||||
}
|
||||
Reference in New Issue
Block a user