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

Fix debug dependency #300

Merged
merged 1 commit into from
Jun 27, 2016
Merged

Fix debug dependency #300

merged 1 commit into from
Jun 27, 2016

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Jun 27, 2016

Fixes #296. This PR moves debug from devDeps to deps.

Because we use debug in dev and other apps, we have the module. We also use webpack with dead code elimination for production builds, which strips the require('debug') call on production.

However, when we build Stardust for consumption, we only parse it with babel as it is up to the user to then webpack it into their own app. This means some users can be missing the debug module and not webpack with production + dead code elimination and therefore get the error in the linked issue.

I don't like adding more dependencies to the published dist, but in this case it is the shortest path to a solution.

@codecov-io
Copy link

Current coverage is 88.07%

No coverage report found for master at 021e287.

Powered by Codecov. Last updated by 021e287...17c7068

@athurman
Copy link
Contributor

🐙

@dvdzkwsk
Copy link
Member

👻

@levithomason levithomason merged commit a2f43e8 into master Jun 27, 2016
@levithomason levithomason deleted the feature/fix-debug-dep branch June 27, 2016 19:23
jhchill666 pushed a commit to jhchill666/stardust that referenced this pull request Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants