summaryrefslogtreecommitdiff
path: root/cli/tests/single_compile_with_reload.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-06-10 16:02:41 +0200
committerGitHub <noreply@github.com>2020-06-10 16:02:41 +0200
commit4b7d3b060e88c02bc0ca12664f52111a4666b167 (patch)
tree018968e67c8d34c5cffe73578643eb071fa103b0 /cli/tests/single_compile_with_reload.ts
parentf364a4c2b6dcce65959af2da3663f0b4a7338229 (diff)
fix: several regressions in TS compiler (#6177)
This commit fixes several regressions in TS compiler: * double compilation of same module during same process run * compilation of JavaScript entry point with non-JS imports * unexpected skip of emit during compilation Additional checks were added to ensure "allowJs" setting is used in TS compiler if JavaScript has non-JS dependencies.
Diffstat (limited to 'cli/tests/single_compile_with_reload.ts')
-rw-r--r--cli/tests/single_compile_with_reload.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/single_compile_with_reload.ts b/cli/tests/single_compile_with_reload.ts
new file mode 100644
index 000000000..3dd728366
--- /dev/null
+++ b/cli/tests/single_compile_with_reload.ts
@@ -0,0 +1,4 @@
+await import("./005_more_imports.ts");
+console.log("1");
+await import("./005_more_imports.ts");
+console.log("2");