more precise polyfill
This commit is contained in:
parent
193c77e51a
commit
d823f44558
1 changed files with 5 additions and 1 deletions
|
@ -4,5 +4,9 @@ import { defineConfig } from 'vite';
|
||||||
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [nodePolyfills(), enhancedImages(), sveltekit()]
|
plugins: [nodePolyfills({
|
||||||
|
globals: {
|
||||||
|
Buffer: true,
|
||||||
|
},
|
||||||
|
}), enhancedImages(), sveltekit()]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue