Skip to content

Commit 2877fcf

Browse files
authored
fix(compile opts): don't overwrite default properties (#1090)
1 parent e115c80 commit 2877fcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sandpack-client/src/clients/runtime/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ export class SandpackRuntime extends SandpackClient {
229229
);
230230

231231
this.dispatch({
232+
...this.options,
232233
type: "compile",
233234
codesandbox: true,
234235
version: 3,
@@ -251,7 +252,6 @@ export class SandpackRuntime extends SandpackClient {
251252
customNpmRegistries: this.options.customNpmRegistries,
252253
teamId: this.options.teamId,
253254
sandboxId: this.options.sandboxId,
254-
...this.options,
255255
});
256256
}
257257

sandpack-react/src/Playground.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
};
1010

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

1515
export const EslintBasic = () => (

0 commit comments

Comments
 (0)