From 799f6c2d16eb3b07ea4a34fd027ffe837d66f348 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Thu, 14 Nov 2024 01:58:40 -0800 Subject: [PATCH] fix build regex? --- .../workbench/contrib/void/browser/react/tsup.config.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/react/tsup.config.js b/src/vs/workbench/contrib/void/browser/react/tsup.config.js index ae2f1f3f..5a4d83b9 100644 --- a/src/vs/workbench/contrib/void/browser/react/tsup.config.js +++ b/src/vs/workbench/contrib/void/browser/react/tsup.config.js @@ -18,13 +18,7 @@ export default defineConfig({ outExtension: () => ({ js: '.js' }), // default behavior is to take local files and make them internal (bundle them) and take imports like 'react' and leave them external (don't bundle them), we want the opposite in many ways noExternal: [ // noExternal means we should take these things and make them not external (bundle them into the output file) - 'react', - 'react-dom', - 'posthog-js', - '@google/generative-ai', - 'ollama', - '@anthropic-ai/sdk', - 'openai', + /^(?!\.).*$/ ], external: [ // these imports should be kept external ../../../ are external (this is just an optimization so the output file doesn't re-implement functions) new RegExp('../../../*.js'