mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Configure tsconfigPaths plugin for astro
This commit is contained in:
parent
042f4e5e41
commit
441778cfa1
1 changed files with 5 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ import netlify from '@astrojs/netlify/functions'
|
|||
// import sitemap from '@astrojs/sitemap'
|
||||
import partytown from '@astrojs/partytown'
|
||||
|
||||
|
||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
// import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
|
||||
|
||||
import { makeViteDefinitions } from './helpers/public-runtime-config.mjs'
|
||||
|
|
@ -49,9 +49,10 @@ export default defineConfig({
|
|||
define: {
|
||||
...makeViteDefinitions()
|
||||
},
|
||||
// plugins: [
|
||||
// viteCommonjs()
|
||||
// ],
|
||||
plugins: [
|
||||
tsconfigPaths(),
|
||||
// viteCommonjs()
|
||||
],
|
||||
build: {
|
||||
commonjsOptions: {
|
||||
transformMixedEsModules: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue