fix(vscode): bundle syntax worker imports

This commit is contained in:
Bohdan Triapitsyn
2026-08-24 16:58:45 +03:00
parent c82f188fc8
commit 7bd27d44d6
3 changed files with 20 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { describe, test } from 'node:test';
const source = readFileSync(new URL('../vite.config.ts', import.meta.url), 'utf8');
describe('VS Code webview worker build', () => {
test('bundles worker imports into one file', () => {
assert.match(source, /worker:\s*\{[\s\S]*?inlineDynamicImports:\s*true/);
});
});