-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import from tslib
support in deno standard library
#5427
Comments
I’m going to be using Azure CosmosDB on my next project and this change is needed by the CosmosDB Dev team to get the relevant lib to incorporate Deno. |
@southpolesteve that PR didn't do what you wanted that PR to do. It dealt with how internal Deno code would have worked and it wouldn't have been available for runtime code persay. Though I can see the value in consuming already transpiled TypeScript files that import from |
(as a temporary work around, I believe you could use |
Makes sense. Here is a simple example that would import Source: const foo = {}
const { bar, ...bax} = foo Emitted code: "use strict";
import { __rest } from 'tslib'
const foo = {};
const { bar } = foo, bax = __rest(foo, ["bar"]); |
@kitsonk is this issue something that you still want to support? |
It is something that is fairly trivial to support with import maps, for those using already emitted TypeScript. Feels like something we should add to the manual of how to use an import map to do this. |
I have a few modules that look like they should work with deno, except that they import from
tslib
. It looks like this was addressed in a PR, but never merged #227. Would the core team be open to reconsidering a similar PR to what was closed?The text was updated successfully, but these errors were encountered: