Skip to content

Commit

Permalink
fix(compile opts): don't overwrite default properties (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Feb 24, 2024
1 parent e115c80 commit 2877fcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sandpack-client/src/clients/runtime/index.ts
Expand Up @@ -229,6 +229,7 @@ export class SandpackRuntime extends SandpackClient {
);

this.dispatch({
...this.options,
type: "compile",
codesandbox: true,
version: 3,
Expand All @@ -251,7 +252,6 @@ export class SandpackRuntime extends SandpackClient {
customNpmRegistries: this.options.customNpmRegistries,
teamId: this.options.teamId,
sandboxId: this.options.sandboxId,
...this.options,
});
}

Expand Down
2 changes: 1 addition & 1 deletion sandpack-react/src/Playground.stories.tsx
Expand Up @@ -9,7 +9,7 @@ export default {
};

export const Basic: React.FC = () => {
return <Sandpack template="vite" theme={themes.sandpackDark} />;
return <Sandpack template="react" theme={themes.sandpackDark} />;
};

export const EslintBasic = () => (
Expand Down

0 comments on commit 2877fcf

Please sign in to comment.