Skip to content
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

Publish UMD bundle for use in browser #545

Closed
LukeSheard opened this issue Jan 28, 2018 · 3 comments
Closed

Publish UMD bundle for use in browser #545

LukeSheard opened this issue Jan 28, 2018 · 3 comments

Comments

@LukeSheard
Copy link

With the rise of unpkg as a CDN for published bundles, would it be acceptable to publish a browser consumable bundle with the NPM package?

@Qix-
Copy link
Member

Qix- commented Jun 20, 2018

No. Please use webpack or similar.

@Qix- Qix- closed this as completed Jun 20, 2018
@bertho-zero
Copy link

bertho-zero commented Dec 13, 2018

Anyone who excludes the node_modules from the build process must change their config to include debug. Or create an alias.

In any case, this is not the most practical thing.
The other popular projects transform the lib so that it can be used everywhere, with an ES version for the bundlers.

@Qix-
Copy link
Member

Qix- commented Dec 13, 2018

Please see sindresorhus/ama#446 (comment). Using babel is the future at this point. Please modernize your build steps to use new versions of debug.

Version 4 was breaking. That's why it was a major version bump. A quick search would have shown you that @bertho-zero. Either you're mis-using ranges or you're using *, both of which are not the fault of debug.

debug didn't break with webpack; it broke with your usage of webpack. There are still thousands of teams - if not more - able to bundle debug with their projects.

There is nothing actionable here.

@debug-js debug-js locked as resolved and limited conversation to collaborators Dec 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants