Skip to content

Commit

Permalink
feat: add stackblitz button code preview
Browse files Browse the repository at this point in the history
  • Loading branch information
winchesHe committed Jan 3, 2025
1 parent 03d4712 commit b4a5334
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/docs/hooks/use-stackblitz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ export function useStackblitz(props: UseSandpackProps) {
files: filesData,
entryFile,
} = useSandpack({
...transformSandpackFiles(files),
files: transformSandpackFiles(files),
typescriptStrict,
});

const transformFiles = mapKeys(filesData, (_, key) => key.replace(/^\//, ""));

const dependencies = {...customSetup.dependencies, ...customSetup.devDependencies};
Expand Down

0 comments on commit b4a5334

Please sign in to comment.