Skip to content

Add docs for extension {module, register()} variant #74

@cspotcode

Description

@cspotcode

It'd be cool if the documentation mentions this variant of extensions:

extensions: {
    ".foo" {
        module: "foo-loader", // load this module
        register: (fooLoader) { // pass it to this function
            fooLoader.register();
        }
    }
}

I see that it's already explained in js-interpret's readme so even linking there, but specifically in relation to the above syntax, would be helpful for newcomers.

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