Skip to content

Commit 2addd2e

Browse files
Merge pull request #6 from NativeScript/hdeshev/no-implicit-use-strict
Don't emit "use strict" in JS output (default behavior in TS 1.8+)
2 parents dfa2667 + 374e80d commit 2addd2e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Gruntfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ module.exports = function(grunt) {
4141

4242
ts: {
4343
options: {
44+
passThrough: true,
4445
target: 'es5',
4546
module: 'commonjs',
4647
sourceMap: true,
4748
declaration: false,
4849
removeComments: false,
4950
noImplicitAny: false,
5051
experimentalDecorators: true,
51-
emitDecoratorMetadata: true
52+
emitDecoratorMetadata: true,
53+
additionalFlags: "--noImplicitUseStrict"
5254
},
5355

5456
devlib: {

main-view-model.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
/// <reference path="declarations.d.ts"/>
2-
3-
"use strict";
4-
52
import observable = require("data/observable");
63
import observableArray = require('data/observable-array');
74
import http = require('http');

0 commit comments

Comments
 (0)