Skip to content

Commit db8108d

Browse files
committed
refactor: dependency management in StackBlitz utility
1 parent 0675b6c commit db8108d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

apps/showcase/shared/utils/stackblitz.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ const SHARED_DEV_DEPS: Record<string, string> = {
5151
const CORE_DEPS: Record<string, string> = {
5252
react: '^19.0.0',
5353
'react-dom': '^19.0.0',
54-
'@primereact/core': '11.0.0-alpha.10'
55-
};
56-
57-
const TAILWIND_EXTRA_DEPS: Record<string, string> = {
54+
'@primereact/core': '11.0.0-alpha.10',
5855
'tailwindcss-primeui': '^0.5.1'
5956
};
6057

@@ -221,7 +218,7 @@ export async function openInStackBlitz({ source, title = 'PrimeReact Demo', type
221218
const registry = await resolveRegistry(['index', ...components]);
222219

223220
Object.assign(files, registry.files);
224-
Object.assign(dependencies, TAILWIND_EXTRA_DEPS, registry.deps);
221+
Object.assign(dependencies, registry.deps);
225222

226223
if (registry.css) {
227224
files['src/style.css'] += `\n${registry.css}`;

0 commit comments

Comments
 (0)