mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
BREAKING(cli/tsc): Enable isolatedModules by default (#8050)
This commit is contained in:
parent
f56c7868ab
commit
a3024a6dc5
3 changed files with 3 additions and 6 deletions
|
@ -698,9 +698,6 @@ impl Graph2 {
|
|||
options: CheckOptions,
|
||||
) -> Result<(Stats, Diagnostics, Option<IgnoredCompilerOptions>), AnyError>
|
||||
{
|
||||
// TODO(@kitsonk) set to `true` in followup PR
|
||||
let unstable = options.lib == TypeLib::UnstableDenoWindow
|
||||
|| options.lib == TypeLib::UnstableDenoWorker;
|
||||
let mut config = TsConfig::new(json!({
|
||||
"allowJs": true,
|
||||
// TODO(@kitsonk) is this really needed?
|
||||
|
@ -708,7 +705,7 @@ impl Graph2 {
|
|||
// Enabled by default to align to transpile/swc defaults
|
||||
"experimentalDecorators": true,
|
||||
"incremental": true,
|
||||
"isolatedModules": unstable,
|
||||
"isolatedModules": true,
|
||||
"lib": options.lib,
|
||||
"module": "esnext",
|
||||
"strict": true,
|
||||
|
|
|
@ -716,8 +716,7 @@ pub async fn runtime_compile(
|
|||
"allowNonTsExtensions": true,
|
||||
"checkJs": false,
|
||||
"esModuleInterop": true,
|
||||
// TODO(lucacasonato): enable this by default in 1.5.0
|
||||
"isolatedModules": unstable,
|
||||
"isolatedModules": true,
|
||||
"jsx": "react",
|
||||
"module": "esnext",
|
||||
"sourceMap": true,
|
||||
|
|
|
@ -69,6 +69,7 @@ const IGNORED_COMPILER_OPTIONS: [&str; 61] = [
|
|||
"inlineSourceMap",
|
||||
"inlineSources",
|
||||
"init",
|
||||
// TODO(nayeemrmn): Add "isolatedModules" here for 1.6.0.
|
||||
"listEmittedFiles",
|
||||
"listFiles",
|
||||
"mapRoot",
|
||||
|
|
Loading…
Reference in a new issue