diff options
Diffstat (limited to 'vite.config.js')
| -rw-r--r-- | vite.config.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vite.config.js b/vite.config.js index c4cdb66a..edb1caae 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,9 +1,13 @@ import { sveltekit } from '@sveltejs/kit/vite'; +import { nodePolyfills } from 'vite-plugin-node-polyfills'; + +import wasm from 'vite-plugin-wasm'; +import topLevelAwait from 'vite-plugin-top-level-await'; import path from 'path'; /** @type {import('vite').UserConfig} */ const config = { - plugins: [sveltekit()], + plugins: [nodePolyfills(), sveltekit(), topLevelAwait(), wasm()], resolve: { alias: { $comp: path.resolve('src/components/index.js') |
