diff --git a/src/tsconfig.json b/src/tsconfig.json index e73f5048..36fa8508 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -51,8 +51,11 @@ "./vs/workbench/contrib/issue/electron-sandbox/issueReporter.js", "./typings", "./vs/**/*.ts", - // "./vs/**/*.tsx", // <-- Void added this "vscode-dts/vscode.proposed.*.d.ts", "vscode-dts/vscode.d.ts" + + // Void added these: + // "./vs/**/*.tsx", + // "./vs/**/*.d.mts", ] } 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 0d3ab8ca..31bdc100 100644 --- a/src/vs/workbench/contrib/void/browser/react/tsup.config.js +++ b/src/vs/workbench/contrib/void/browser/react/tsup.config.js @@ -9,13 +9,15 @@ export default defineConfig({ ], outDir: './out', format: ['esm'], - // dts: true, splitting: false, + + // dts: true, // sourcemap: true, + clean: true, platform: 'browser', target: 'esnext', - // injectStyle: true, // bundle css into the output file + injectStyle: true, // bundle css into the output file 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) - anything that doesn't start with a "." needs to be force-flagged as not external