We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76b7d43 commit 1b05059Copy full SHA for 1b05059
packages/sandbox/src/index.ts
@@ -150,7 +150,12 @@ export const createTypeScriptSandbox = (
150
? monaco.languages.typescript.javascriptDefaults
151
: monaco.languages.typescript.typescriptDefaults
152
153
- defaults.setDiagnosticsOptions({ ...defaults.getDiagnosticsOptions(), noSemanticValidation: false })
+ defaults.setDiagnosticsOptions({
154
+ ...defaults.getDiagnosticsOptions(),
155
+ noSemanticValidation: false,
156
+ // This is when tslib is not found
157
+ diagnosticCodesToIgnore: [2354],
158
+ })
159
160
// In the future it'd be good to add support for an 'add many files'
161
const addLibraryToRuntime = (code: string, path: string) => {
0 commit comments