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

Improve external package support #1

Open
mohammedzamakhan opened this issue Mar 24, 2017 · 2 comments
Open

Improve external package support #1

mohammedzamakhan opened this issue Mar 24, 2017 · 2 comments

Comments

@mohammedzamakhan
Copy link

I wanted to include angular 2 project, but didn't find any way of doing it

@calebegg
Copy link
Owner

For many external libraries, you can just <script src> it in the HTML and it will work. For example, here's a wich that uses three.js.

The big missing piece there is @types support, of course. I'd like to address that somehow, probably by just preloading a bunch of common libraries for now.

Ideally, I'd like it to be possible to just do

import * as THREE from 'threejs';

and have it Just Work, pinning the current version, loading @types, and loading runtime code from a CDN. That will require some thought and work though.

As for Angular, which is what you specifically mentioned, that will probably require some special treatment to get compilation to consume your source + Angular in the same compilation. I need to look into it; I haven't done very much with Angular > 1 yet. It's on my todo list, though.

@calebegg calebegg changed the title How do I import stuff from other projects Improve external package support Mar 27, 2017
@chrisgervang
Copy link

I'd love to use this with @types support and create react/redux component examples. The libraries I'd need preloaded are react, react-redux, and redux

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

3 participants