Skip to content

Commit fb06641

Browse files
test(platform): cover @tanstack/angular-* SSR noExternal regex
1 parent 4c7933c commit fb06641

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎packages/platform/src/lib/deps-plugin.spec.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,16 @@ describe('depsPlugin ssr config', () => {
2929
);
3030
expect(result.ssr.optimizeDeps.rolldownOptions.plugins).toHaveLength(1);
3131
});
32+
33+
it('bundles @tanstack/angular-* libraries for the server', () => {
34+
const plugins = depsPlugin();
35+
const result = (plugins[0].config as any)();
36+
const tanstack = result.ssr.noExternal.find((dep: unknown) =>
37+
String(dep).includes('tanstack'),
38+
);
39+
40+
expect(tanstack.test('@tanstack/angular-charts')).toBe(true);
41+
expect(tanstack.test('@tanstack/angular-query-experimental')).toBe(true);
42+
expect(tanstack.test('@tanstack/query-core')).toBe(false);
43+
});
3244
});

0 commit comments

Comments
 (0)