more precise polyfill

This commit is contained in:
vcoppe
2024-10-08 12:39:00 +02:00
parent 193c77e51a
commit d823f44558

View File

@@ -4,5 +4,9 @@ import { defineConfig } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills'
export default defineConfig({
plugins: [nodePolyfills(), enhancedImages(), sveltekit()]
plugins: [nodePolyfills({
globals: {
Buffer: true,
},
}), enhancedImages(), sveltekit()]
});