Skip to content

Commit

Permalink
SDKs: optional initializeNodeRuntime argument (#3251)
Browse files Browse the repository at this point in the history
## Description

- make `initializeNodeRuntime` argument optional
  • Loading branch information
samijaber committed Apr 30, 2024
1 parent 055278c commit af84d1e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .changeset/lovely-snails-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@builder.io/sdk-react-nextjs': patch
'@builder.io/sdk-qwik': patch
'@builder.io/sdk-react': patch
'@builder.io/sdk-react-native': patch
'@builder.io/sdk-solid': patch
'@builder.io/sdk-svelte': patch
'@builder.io/sdk-vue': patch
---

Fix: make `initializeNodeRuntime` argument optional
5 changes: 2 additions & 3 deletions packages/sdks/src/functions/evaluate/node-runtime/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ import type { IsolateOptions } from 'isolated-vm';
* - The NextJS Pages router's `_document.tsx`
* - Your Remix route's `loader`
*/
export const initializeNodeRuntime = ({
ivmIsolateOptions,
}: {
export const initializeNodeRuntime = (args?: {
ivmIsolateOptions?: IsolateOptions;
}) => {
const { ivmIsolateOptions } = args || {};
setIvm(ivm, ivmIsolateOptions);
};

0 comments on commit af84d1e

Please sign in to comment.