Skip to content

Modules / exports #109

@jkins

Description

@jkins

I'm not sure how much action 1.x will see in the future, but we wanted to import the v1.3 schemas to include some validation in a module-based wepback project:

import schemas from 'cmapi/cmapi.schema'`

It'd be nice for module-based builds to import the schema source directly. Maybe this could be a minor enhancement for a 1.4 or 1.3.1.

Temporary workaround

My fork committed a built dist directory, and added an export default cmapi to the bottom of the built dist/cmapi.schemas.js file. This is obviously just a workaround.

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