feat: enable the decorators compiler option.

This quenches a warning during compilation.
This commit is contained in:
Martin Probst 2015-06-26 14:43:05 -07:00
parent 861be30021
commit 0bb78b7ef4
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class DiffingTSCompiler implements DiffingBroccoliPlugin {
this.tsOpts = Object.create(options); this.tsOpts = Object.create(options);
this.tsOpts.outDir = this.cachePath; this.tsOpts.outDir = this.cachePath;
this.tsOpts.target = (<any>ts).ScriptTarget[options.target]; this.tsOpts.target = (<any>ts).ScriptTarget[options.target];
this.tsOpts.experimentalDecorators = true;
this.rootFilePaths = options.rootFilePaths ? options.rootFilePaths.splice(0) : []; this.rootFilePaths = options.rootFilePaths ? options.rootFilePaths.splice(0) : [];
this.tsServiceHost = new CustomLanguageServiceHost(this.tsOpts, this.rootFilePaths, this.tsServiceHost = new CustomLanguageServiceHost(this.tsOpts, this.rootFilePaths,
this.fileRegistry, this.inputPath); this.fileRegistry, this.inputPath);