Skip to content

Improve external package support #1

Description

@mohammedzamakhan

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

Activity

  1. calebegg commented on Mar 27, 2017

    @calebegg
    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.

  2. changed the title [-]How do I import stuff from other projects[/-] [+]Improve external package support[/+] on Mar 27, 2017
  3. chrisgervang commented on Apr 17, 2017

    @chrisgervang

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions