Skip to content

How to run Iroh against large JS libraries? #13

@evanrolfe

Description

@evanrolfe

Hi, first of all this library is awesome, thanks for the contribution!

I would like to run Iroh against large js libraries like Jquery, React etc. however I am having trouble loading the entire library code into a string in order to pass it to Iroh.Stage(). For example, if you try and load the entire jquery 3.4.1 code into a string using like so:

const jqueryCode = `<JQUERY_CODE_GOES_HERE>`;
const stage = new Iroh.Stage(code);

Then it raises this error:

Uncaught SyntaxError: Octal escape sequences are not allowed in template strings.

I suppose I could do some find/replace operations on jquery.js and make the code able to be stored in a string but this is time consuming and I would like to be able to run Iroh against ANY javascript library. Do you have any ideas on how I can achieve this? Thanks, Evan.

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