Skip to content

How to namespace package for browsers #13

Open
@ncphillips

Description

@ncphillips

When building a package with UMD so that it can be used in the browser, a namespace must be provided so it can be accessed globally.

The name set in the package.json likely won't be a good name, because NPM convention uses "kabab-case", which is not a valid variable in javascript.

Converting the "kabab-case" to "camelCase" doesn't work in the even that the package name has an organization. For example @myOrg/myPackage.

We need a way to get a good name for the package.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions