Compare commits

...
Author SHA1 Message Date
ShareVB 0c9ad77fb0 chore: optimize onnxruntime-node 2025-05-13 16:38:49 +02:00
ShareVB 229814a4b9 chore: vite config opt 2025-05-13 11:19:25 +02:00
ShareVB 89cda92d46 chore: vite config opt 2025-05-13 10:33:51 +02:00
ShareVB 722cd7fa53 chore: github release matrix optimization 2025-05-13 10:00:25 +02:00
ShareVB 9311b39612 chore: vite config optimization 2025-05-13 09:57:19 +02:00
sharevb f7700cede1 fix: chunking bug 2025-05-12 14:46:58 +02:00
sharevb b6ef5d50dc fix: chunking errors 2025-05-12 13:33:39 +02:00
sharevb f78b85ea14 chore: Vercel Building
try reduce build memory
2025-05-12 12:28:09 +02:00
ShareVB f3d5ab8262 chore: chunking optimization 2025-05-11 22:21:45 +02:00
2 changed files with 10 additions and 3 deletions

No files matched your search

+4 -1
View File
@@ -8,6 +8,9 @@ on:
jobs:
docker-release:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64,arm64]
steps:
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
@@ -41,7 +44,7 @@ jobs:
file: ./Dockerfile
build-args: |
"BASE_URL=/it-tools/"
platforms: linux/amd64,linux/arm64
platforms: linux/${{ matrix.architecture }}
push: true
tags: |
sharevb/it-tools:baseurl-it-tools
+6 -2
View File
@@ -115,6 +115,7 @@ export default defineConfig({
'fs': fileURLToPath(new URL('./src/_empty.ts', import.meta.url)),
'@babel/core': 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)),
},
},
define: {
@@ -127,9 +128,11 @@ export default defineConfig({
target: 'esnext',
// sourcemap: false,
minify: !process.env.VERCEL,
reportCompressedSize: !process.env.VERCEL,
// cssMinify: false,
modulePreload: false,
rollupOptions: {
external: ['regex', './out/isolated_vm', 'isolated-vm'],
external: ['regex', './out/isolated_vm', 'isolated-vm', 'onnxruntime-node'],
output: {
format: 'es',
manualChunks: (id) => {
@@ -137,6 +140,7 @@ export default defineConfig({
if (id.includes('tesseract.js')) return 'tesseract.js';
if (id.includes('pdfjs')) return 'pdfjs';
if (id.includes('unicode')) return 'unicode';
// if (id.includes('faker')) return 'faker';
// if (id.includes('transformers')) return 'transformers';
// if (id.includes("node_modules")) {
// return "vendor";
@@ -151,7 +155,7 @@ export default defineConfig({
},
},
optimizeDeps: {
include: ['re2-wasm-embedded', 'isolated-vm', 'pdfjs-dist'], // optionally specify dependency name
include: ['isolated-vm', 'pdfjs-dist', 'onnxruntime-node'], // optionally specify dependency name
esbuildOptions: {
supported: {
'top-level-await': true,