diff --git a/sandpack-react/src/presets/Sandpack.stories.tsx b/sandpack-react/src/presets/Sandpack.stories.tsx index e0c56d7af..c9c56561a 100644 --- a/sandpack-react/src/presets/Sandpack.stories.tsx +++ b/sandpack-react/src/presets/Sandpack.stories.tsx @@ -109,6 +109,18 @@ export const VanillaEditor: Story = (args) => ( /> ); +export const VanillaTypescriptEditor: Story = (args) => ( + +); + export const AngularEditor: Story = (args) => ( Hello Vanilla! +
+ We use the same configuration as Parcel to bundle this sandbox, you can find more + info about Parcel + here. +
+\`; +`, + }, + "/src/styles.css": { + code: `body { + font-family: sans-serif; +} + `, + }, + "/index.html": { + code: ` + + + + Parcel Sandbox + + + + +
+ + + + +`, + }, + }, + dependencies: {}, + devDependencies: { + typescript: "^4.0.0", + }, + entry: "/src/index.ts", + main: "/src/index.ts", + environment: "parcel", +}; diff --git a/sandpack-react/src/types.ts b/sandpack-react/src/types.ts index 13e29c6f5..3978f1355 100644 --- a/sandpack-react/src/types.ts +++ b/sandpack-react/src/types.ts @@ -99,6 +99,7 @@ export type SandpackPredefinedTemplate = | "react" | "react-ts" | "vanilla" + | "vanilla-ts" | "vue" | "vue3";