Minting dapp for Degen Domains
https://degendomains.io
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
697 B
30 lines
697 B
2 years ago
|
import { defineConfig } from 'vite'
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||
|
import { NodeGlobalsPolyfillPlugin } from "@esbuild-plugins/node-globals-polyfill";
|
||
|
import inject from "@rollup/plugin-inject";
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
svelte(),
|
||
|
inject({
|
||
|
util: "util/",
|
||
|
}),
|
||
|
],
|
||
|
optimizeDeps: {
|
||
|
esbuildOptions: {
|
||
|
// Node.js global to browser globalThis
|
||
|
define: {
|
||
|
global: "globalThis",
|
||
|
},
|
||
|
// Enable esbuild polyfill plugins
|
||
|
plugins: [
|
||
|
NodeGlobalsPolyfillPlugin({
|
||
|
buffer: true,
|
||
|
}),
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
});
|