Skip to content

Missing AMD support for D3, TopoJSON #15

Description

@nrabinowitz

The UMD wrapper is great for providing AMD support, but topojson and d3 are expected as globals. Unfortunately, both of those libraries also use a UMD wrapper, so if AMD support (i.e. RequireJS) is available, they will not be available as globals. So there's basically no way to use the library with RequireJS.

I think the "right" way to fix this is to define a factory that takes the globals as arguments - see https://www.npmjs.com/package/umd-wrap for one approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions