You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting the target to es6, it still loads the ES3/5 lib.d.ts file.
varcontent=fs.readFileSync(path.resolve(path.dirname(filename)+'/lib.d.ts')).toString('utf8');returnthis.libDefault[filename]=tsApi.createSourceFile(typescript,'__lib.d.ts',content,typescript.ScriptTarget.ES3);// Will also work for ES5 & 6
I suppose you need to expose options to Host so you can conditionally include one or the other.
On my local installation, I've hardcoded it to lib.es6.d.ts and it seems to do the trick.
When setting the target to es6, it still loads the ES3/5
lib.d.ts
file.I suppose you need to expose
options
toHost
so you can conditionally include one or the other.On my local installation, I've hardcoded it to
lib.es6.d.ts
and it seems to do the trick.gulp-typescript/lib/host.ts
Line 28 in 4a3890b
The text was updated successfully, but these errors were encountered: