Skip to content

Commit

Permalink
Add import helpers to the playground config
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Aug 6, 2020
1 parent 72b640f commit 76b7d43
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/playground/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ export const setupPlayground = (
} else {
sidebarTabs.style.display = "none"
sidebarContent.style.display = "none"
settingsContent.style.display = "block";
(document.querySelector(".playground-sidebar label") as any).focus()
settingsContent.style.display = "block"
;(document.querySelector(".playground-sidebar label") as any).focus()
}
settingsToggle.parentElement!.classList.toggle("open")
}
Expand Down Expand Up @@ -462,8 +462,8 @@ export const setupPlayground = (
}

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

const ui = createUI()
Expand Down
2 changes: 2 additions & 0 deletions packages/sandbox/src/compilerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export function getDefaultSandboxCompilerOptions(config: PlaygroundConfig, monac
allowJs: config.useJavaScript,
declaration: true,

importHelpers: false,

experimentalDecorators: true,
emitDecoratorMetadata: true,
moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
Expand Down
1 change: 0 additions & 1 deletion packages/tsconfig-reference/scripts/tsconfigRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export const defaultsForOptions = {
inlineSourceMap: "false",
inlineSources: "false",
isolatedModules: "false",
jsx: '`"react"`',
jsxFactory: "`React.createElement`",
keyofStringsOnly: "false",
listEmittedFiles: "false",
Expand Down
1 change: 1 addition & 0 deletions packages/typescriptlang-org/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"strict": true,
"esModuleInterop": true,
"noEmit": true,
"jsx": "react",
"skipLibCheck": true,
"noImplicitAny": false,
"resolveJsonModule": true
Expand Down

0 comments on commit 76b7d43

Please sign in to comment.