Skip to main content

Interface: SandpackSetup

Properties

dependencies

Optional dependencies: Record<string, string>

Examples:

{
 "react": "latest",
 "@material-ui/core": "4.12.3",
}

Defined in

types.ts:104


entry

Optional entry: string

The entry file is the starting point of the bundle process.

If you change the path of the entry file, make sure you control all the files that go into the bundle process, as prexisting settings in the template might not work anymore.

Defined in

types.ts:110


environment

Optional environment: SandboxEnvironment

Defined in

types.ts:113


files

Optional files: SandpackFiles

Defined in

types.ts:112


main

Optional main: string

Defined in

types.ts:111