Fixes worker sandbox problems (#4975)

This commit is contained in:
Henning Dieterichs 2025-09-05 20:27:56 +02:00 committed by GitHub
parent a4d7907bd4
commit 6f3fbe8c3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 114 additions and 32 deletions

View file

@ -3,6 +3,7 @@ import { glob } from 'node:fs/promises';
import { basename, dirname, join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vite';
import { urlToEsmPlugin } from './plugin';
const __dirname = dirname(fileURLToPath(import.meta.url));
@ -77,7 +78,8 @@ export default defineConfig(async (args) => {
source: readFileSync(resolve(__dirname, './src/loader.js'), 'utf-8')
});
}
}
},
urlToEsmPlugin()
]
};
});