Skip to content

Add support for adding JS dependencies. #68

@mattdeboard

Description

@mattdeboard

When using a browser-connected REPL for Om, I'd love to be able to invoke Om functions to investigate their outputs and so forth. However this would require having the React object from react.js avaliable in the page. The default HTML generated by send-repl-index however is pretty minimal (by design).

I can think of a few ways to accomplish this:

  • have some kind of additional config/hook in profiles.clj to specify additional URLs (http or file system) for libs to include;
  • read from :preamble and add the paths specified there as <script> tags;
  • same as above but just add those libs to the client.js

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