You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeScript code now compiles to
ES2020. This breaks compatibility with obsolete
versions of Node and obsolete browsers. If you
need to support these older systems either
override compilerOptions.target or use Babel
to compile down to older ES syntax.
stripInternal: The allowSyntheticDefaultImports
option is no longer set. This option is not
appropriate for most projects. It should only be
set for projects that are transpiled using Babel
(or similar). See https://www.typescriptlang.org/tsconfig#allowSyntheticDefaultImports
stripInternal: The stripInternal option is no
longer set, meaning TypeScript will no longer
exclude type declarations for code marked @internal. This option was unsafe because
TypeScript does not check that the resulting
declarations are valid. Projects that relied on
this option should consider using api-extractor
(https://api-extractor.com/) instead, or override
this option to true in their tsconfig.
types: Ambient type declarations are no
longer included in the compilation by default
(tsconfig specifies the option "types": []).
Consuming projects that require ambient types
should list them explicitly in their tsconfig.
For example, projects that target node should
add a dependency on @types/node and specify {"compilerOptions": {"types": ["node"]}}.
commonjs: The commonjs, dom-commonjs, and
webworker-commonjs configurations are obsolete
and have been removed. Instead of commonjs, use
the top level configuration (replace
"@softwareventures/tsconfig/commonjs" with
"@softwareventures/tsconfig"). Instead of
dom-commonjs, use the dom configuration (replace
"@softwareventures/tsconfig/dom-commonjs" with
"@softwareventures/tsconfig/dom"). Instead of
webworker-commonjs, use the webworker
configuration (replace
"@softwareventures/tsconfig/webworker-commonjs"
with "@softwareventures/tsconfig/webworker").
The CommonJS-specific configurations are obsolete
now since the corresponding base configurations
use "Node16" module resolution and compile to
"Node16" modules. This is equivalent to compiling
to CommonJS modules and following CommonJS
resolution rules when that is what node would
expect, and compiling to ES Modules and following
ES Module resolution rules when that is what node
would expect.