Keep matrix SDK external in bundle checks

This commit is contained in:
Tak Hoffman
2026-03-27 23:39:45 -05:00
parent 363038828f
commit 7779205aa1
2 changed files with 7 additions and 1 deletions

View File

@@ -26,6 +26,12 @@ describe("plugin-sdk bundled exports", () => {
clean: false,
config: false,
dts: false,
deps: {
// Match the production host build contract: Matrix SDK packages stay
// external so the heavy runtime surface does not fold multiple
// matrix-js-sdk entrypoints into one bundle artifact.
neverBundle: ["@lancedb/lancedb", "@matrix-org/matrix-sdk-crypto-nodejs", "matrix-js-sdk"],
},
// Full plugin-sdk coverage belongs to `pnpm build`, package contract
// guardrails, and `subpaths.test.ts`. This file only keeps the expensive
// bundler path honest across representative entrypoint families.

View File

@@ -155,7 +155,7 @@ export default defineConfig([
// and bundled hooks in one graph so runtime singletons are emitted once.
entry: buildUnifiedDistEntries(),
deps: {
neverBundle: ["@lancedb/lancedb"],
neverBundle: ["@lancedb/lancedb", "@matrix-org/matrix-sdk-crypto-nodejs", "matrix-js-sdk"],
},
}),
]);