summaryrefslogtreecommitdiff
path: root/cli/compilers
diff options
context:
space:
mode:
authorMaximilien Mellen <maxmellen0@gmail.com>2020-02-19 21:36:18 +0100
committerGitHub <noreply@github.com>2020-02-19 15:36:18 -0500
commit90125566bbaed8b5c6e55ca8dbc432e3433fb73c (patch)
treebf798a408b26264641260395ce8cfc9d4bb37637 /cli/compilers
parent852823fa505d75d61e70e1330bbf366aa248e650 (diff)
Enable TS strict mode by default (#3899)
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Diffstat (limited to 'cli/compilers')
-rw-r--r--cli/compilers/ts.rs2
-rw-r--r--cli/compilers/wasm_wrap.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs
index dec74c256..0261b983e 100644
--- a/cli/compilers/ts.rs
+++ b/cli/compilers/ts.rs
@@ -714,7 +714,7 @@ mod tests {
.unwrap()
.code
.as_bytes()
- .starts_with(b"console.log(\"Hello World\");"));
+ .starts_with(b"\"use strict\";\nconsole.log(\"Hello World\");"));
}
#[tokio::test]
diff --git a/cli/compilers/wasm_wrap.js b/cli/compilers/wasm_wrap.js
index c90bd5540..98892b8e0 100644
--- a/cli/compilers/wasm_wrap.js
+++ b/cli/compilers/wasm_wrap.js
@@ -1,3 +1,4 @@
+// @ts-nocheck
const importObject = Object.create(null);
//IMPORTS