Skip to content

Commit 76b7d43

Browse files
committed
Add import helpers to the playground config
1 parent 72b640f commit 76b7d43

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

packages/playground/src/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ export const setupPlayground = (
386386
} else {
387387
sidebarTabs.style.display = "none"
388388
sidebarContent.style.display = "none"
389-
settingsContent.style.display = "block";
390-
(document.querySelector(".playground-sidebar label") as any).focus()
389+
settingsContent.style.display = "block"
390+
;(document.querySelector(".playground-sidebar label") as any).focus()
391391
}
392392
settingsToggle.parentElement!.classList.toggle("open")
393393
}
@@ -462,8 +462,8 @@ export const setupPlayground = (
462462
}
463463

464464
// Ensure that the editor is full-width when the screen resizes
465-
window.addEventListener('resize', () => {
466-
sandbox.editor.layout();
465+
window.addEventListener("resize", () => {
466+
sandbox.editor.layout()
467467
})
468468

469469
const ui = createUI()

packages/sandbox/src/compilerOptions.ts

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export function getDefaultSandboxCompilerOptions(config: PlaygroundConfig, monac
4040
allowJs: config.useJavaScript,
4141
declaration: true,
4242

43+
importHelpers: false,
44+
4345
experimentalDecorators: true,
4446
emitDecoratorMetadata: true,
4547
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,

packages/tsconfig-reference/scripts/tsconfigRules.ts

-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ export const defaultsForOptions = {
117117
inlineSourceMap: "false",
118118
inlineSources: "false",
119119
isolatedModules: "false",
120-
jsx: '`"react"`',
121120
jsxFactory: "`React.createElement`",
122121
keyofStringsOnly: "false",
123122
listEmittedFiles: "false",

packages/typescriptlang-org/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"strict": true,
88
"esModuleInterop": true,
99
"noEmit": true,
10+
"jsx": "react",
1011
"skipLibCheck": true,
1112
"noImplicitAny": false,
1213
"resolveJsonModule": true

0 commit comments

Comments
 (0)