mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Configure common js support for Astro/Vite
This commit is contained in:
parent
7209a8caff
commit
e5e927537e
1 changed files with 7 additions and 2 deletions
|
|
@ -4,6 +4,8 @@ import tailwind from '@astrojs/tailwind'
|
|||
// Astro Netlify Reference
|
||||
// https://github.com/withastro/astro/tree/main/packages/integrations/netlify
|
||||
import netlify from '@astrojs/netlify/functions'
|
||||
import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
|
||||
|
||||
|
||||
import { makeViteDefinitions } from './helpers/public-runtime-config.mjs'
|
||||
|
||||
|
|
@ -28,7 +30,10 @@ export default defineConfig({
|
|||
// Vite: https://vitejs.dev/config/#define
|
||||
// esbuild: https://esbuild.github.io/api/#define
|
||||
define: {
|
||||
...makeViteDefinitions()
|
||||
}
|
||||
...makeViteDefinitions(),
|
||||
},
|
||||
plugins: [
|
||||
viteCommonjs()
|
||||
]
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue