Skip to content

Learning to see how its done to prep for client-side prolog. Some questions #1

Open
@neenjaw

Description

@neenjaw

This is sweet, really cool to see. A few questions for my learning and planning to take the prolog POC farther

  1. In this line, the new Promise is constructed, but the first argument is named "reject", but this is still the resolve function, no? Have you renamed as per the intent, but functionally you are just returning the time out message?

    return new Promise<TestRun>((reject) => {

  2. the esm templated string is brilliant, and when you import that, it then becomes an imported module file rather than loaded in to the global space. 🤩 🥇

  3. You have a webpack comment on 156, is this because webpacker will try to re-write this concern to bundle it?

    const result = await import(/* webpackIgnore: true */ `${entry}`)

    Asking because I was planning to load the prolog wasm as it's bundled as its own package as well (https://www.npmjs.com/package/swipl-wasm) and its reasonably large (https://bundlephobia.com/package/swipl-wasm@5.0.11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions