mirror of
https://github.com/coracle-social/coracle.git
synced 2024-10-07 04:03:33 +00:00
24 lines
513 B
JavaScript
24 lines
513 B
JavaScript
import * as path from 'path'
|
|
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
src: path.resolve(__dirname, 'src'),
|
|
}
|
|
},
|
|
plugins: [
|
|
nodePolyfills({
|
|
protocolImports: true,
|
|
}),
|
|
svelte({
|
|
onwarn: (warning, handler) => {
|
|
if (warning.code.startsWith("a11y-")) return
|
|
handler(warning)
|
|
},
|
|
}),
|
|
],
|
|
})
|