mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-02 17:52:12 +03:00
chore: try fix vercel build
This commit is contained in:
1 parent
a93a99b138
commit
8e9d921b88
1 file changed
+2
-1
+2
-1
@@ -122,6 +122,7 @@ export default defineConfig({
|
|||||||
'isolated-vm': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
'isolated-vm': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||||
'onnxruntime-node': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
'onnxruntime-node': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||||
'unpdf/pdfjs': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
'unpdf/pdfjs': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||||
|
'webcrypto-liner-shim': !process.env.VERCEL ? 'webcrypto-liner-shim' : fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
@@ -160,7 +161,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
include: ['isolated-vm', 'pdfjs-dist', 'onnxruntime-node', 'unpdf', 'unpdf/pdfjs'], // optionally specify dependency name
|
include: ['isolated-vm', 'pdfjs-dist', 'onnxruntime-node', 'unpdf', 'unpdf/pdfjs', ...(process.env.VERCEL ? ['webcrypto-liner-shim'] : [])], // optionally specify dependency name
|
||||||
esbuildOptions: {
|
esbuildOptions: {
|
||||||
supported: {
|
supported: {
|
||||||
'top-level-await': true,
|
'top-level-await': true,
|
||||||
|
|||||||
Reference in new issue
Block a user