Skip to content
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

TypeScript support #6

Open
2 tasks
egoist opened this issue Feb 1, 2019 · 1 comment
Open
2 tasks

TypeScript support #6

egoist opened this issue Feb 1, 2019 · 1 comment

Comments

@egoist
Copy link
Owner

egoist commented Feb 1, 2019

  • Add .js extension to the cache filename if it doesn't have extension
  • Figure out how to make types work with the cached dependencies
@hanssens
Copy link

If I may add, specifically for TypeScript, there is another issue with compile-time errors when you import a remote module:

import { Foo } from 'https://cdn.whatever.com/module.js';

Without attributing the line above with // @ts-ignore, the TS compiler will spit out Cannot find module... errors.

Similar, this also occurs when using a dynamic import:

async foo(): Promise<void> {
   const module = await import('https://cdn.whatever.com/module.js');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants