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: add default empty filename #99

Merged
merged 2 commits into from
Jan 4, 2019
Merged

fix: add default empty filename #99

merged 2 commits into from
Jan 4, 2019

Conversation

kentcdodds
Copy link
Owner

What: This defaults the filename variable to an empty string

Why: ASTexplorer.net is not working for babel-plugin-macros because we need the filename and it's not being provided in that environment. I'd considered just making the fix there, but I suspect there are other situations where this could be helpful.

How: Using destructuring defaults

@codecov
Copy link

codecov bot commented Jan 4, 2019

Codecov Report

Merging #99 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #99   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          80     79    -1     
  Branches       18     18           
=====================================
- Hits           80     79    -1
Impacted Files Coverage Δ
src/index.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e0badb...5d5d182. Read the comment docs.

@kentcdodds kentcdodds merged commit 7ad592c into master Jan 4, 2019
@kentcdodds kentcdodds deleted the pr/filename-default branch January 4, 2019 06:01
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.

None yet

1 participant