mirror of
https://github.com/dergigi/boris.git
synced 2026-02-01 05:04:29 +01:00
config: add module resolution options for Vercel build
- Add resolve conditions for better ESM handling - Configure esbuildOptions with resolveExtensions - Add commonjsOptions to handle mixed ESM/CJS modules - Attempt to fix applesauce-core async-event-store resolution issue
This commit is contained in:
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Boris - Nostr Bookmarks</title>
|
||||
<script type="module" crossorigin src="/assets/index-0zMzFJ-U.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-CxfbtaRZ.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Bqz-n1DY.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -7,10 +7,20 @@ export default defineConfig({
|
||||
port: 9802
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.ts', '.tsx', '.json']
|
||||
extensions: ['.js', '.ts', '.tsx', '.json'],
|
||||
conditions: ['import', 'module', 'browser', 'default']
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['applesauce-core', 'applesauce-factory', 'applesauce-relay', 'applesauce-react']
|
||||
include: ['applesauce-core', 'applesauce-factory', 'applesauce-relay', 'applesauce-react'],
|
||||
esbuildOptions: {
|
||||
resolveExtensions: ['.js', '.ts', '.tsx', '.json']
|
||||
}
|
||||
},
|
||||
build: {
|
||||
commonjsOptions: {
|
||||
include: [/node_modules/],
|
||||
transformMixedEsModules: true
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user