fix(web-admin): use html-to-docx browser build and inline images for Word export
Vite was resolving the Node ESM entry which needs Buffer/global; switch to the browser bundle and pre-convert images to data URLs so seals and watermarks embed. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
deefdf7bb4
commit
8bbc716d17
3 files changed
+95
-13
No files matched your search
Vendored
+10
@@ -17,6 +17,16 @@ declare module 'vue-img-cutter'
|
||||
|
||||
declare module 'file-saver'
|
||||
|
||||
declare module '@turbodocx/html-to-docx/dist/html-to-docx.browser.esm.js' {
|
||||
const HTMLtoDOCX: (
|
||||
htmlString: string,
|
||||
headerHTMLString?: string | null,
|
||||
documentOptions?: Record<string, unknown>,
|
||||
footerHTMLString?: string | null
|
||||
) => Promise<Blob | ArrayBuffer>
|
||||
export default HTMLtoDOCX
|
||||
}
|
||||
|
||||
declare module 'qrcode.vue' {
|
||||
export type Level = 'L' | 'M' | 'Q' | 'H'
|
||||
export type RenderAs = 'canvas' | 'svg'
|
||||
|
||||
Reference in new issue
Block a user