Skip to content

How to namespace package for browsers #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ncphillips opened this issue Jan 5, 2018 · 0 comments
Open

How to namespace package for browsers #13

ncphillips opened this issue Jan 5, 2018 · 0 comments

Comments

@ncphillips
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant