Right now when external packages are resolved we do not treat global.d.ts as globals, which results in an invalid import.
As an example the Node.js typings have a global.d.ts and using something like Buffer results in Node.Buffer, where Node is import * as Node from 'node'.
This should treated rather just be like a TypeScript global.
Right now when external packages are resolved we do not treat
global.d.ts
as globals, which results in an invalid import.As an example the Node.js typings have a global.d.ts and using something like
Buffer
results inNode.Buffer
, whereNode
isimport * as Node from 'node'
.This should treated rather just be like a TypeScript global.