Open vinch opened 2 months ago
Try to add this to rollup config: .... build: { rollupOptions: {
context: "window",
moduleContext: (id) => {
if (id.includes('pdfmake/build/vfs_fonts.js')) {
return 'window';
}
},
},
},
Hello. I'm using pdfmake in a SvelteKit (1.20) project in TypeScript and simply doing the imports via the method presented in the documentation gives me an error.
I'm doing this :
And I get the following error :
What am I doing wrong?