From e23e234f59a2edea25e9d9efda3a0ea601632465 Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Tue, 23 Feb 2016 15:11:28 +0200 Subject: [PATCH] Don't emit "use strict" in compiled source. It breaks on iOS. --- gruntfile.js | 5 ++++- tsconfig.json | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 9cf7f368a..bfc205437 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -336,7 +336,10 @@ module.exports = function(grunt) { }, ts: { build: { - tsconfig: 'tsconfig.json', + tsconfig: { + tsconfig: 'tsconfig.json', + passThrough: true, + }, outDir: localCfg.outModulesDir, options: tsOptions }, diff --git a/tsconfig.json b/tsconfig.json index 33f8b8534..96cfeb828 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,7 @@ "declaration": false, "noImplicitAny": false, "removeComments": true, + "noImplicitUseStrict": true, "outDir": "bin/dist/modules", "experimentalDecorators": true }, @@ -707,4 +708,4 @@ "atom": { "rewriteTsconfig": true } -} \ No newline at end of file +}