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 fileName options passed to babylon #4570

Merged

Conversation

MichaReiser
Copy link
Contributor

Q A
Bug fix? yes
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? yes
Tests added/pass? yes
Fixed tickets
License MIT
Doc PR

The filename options used by babylon is called sourceFilename and not filename. Therefore an additional option called sourceFilename should be passed to babylon parse babel/babylon@bb49195

The filename options used by babylon is called `sourceFilename` and not `filename`. Therefore the option should be adjusted to be called `sourceFilename`.
@codecov-io
Copy link

codecov-io commented Sep 26, 2016

Current coverage is 88.69% (diff: 100%)

Merging #4570 into master will not change coverage

@@             master      #4570   diff @@
==========================================
  Files           192        192          
  Lines         13608      13608          
  Methods        1412       1412          
  Messages          0          0          
  Branches       3136       3136          
==========================================
  Hits          12070      12070          
  Misses         1538       1538          
  Partials          0          0          

Powered by Codecov. Last update fc2b3cb...e6a40c2

@danez danez added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Sep 26, 2016
@danez
Copy link
Member

danez commented Sep 26, 2016

Thank you, seems that nonStandard, filename and highlightCode are not used in babylon at all. Going to create a separate issue for it.

@danez danez merged commit a81a0d0 into babel:master Sep 26, 2016
@MichaReiser
Copy link
Contributor Author

Yeah file name is not used but somehow the unit tests break if the filename property is removed

@danez
Copy link
Member

danez commented Sep 26, 2016

I created a new issue for that #4571

panagosg7 pushed a commit to panagosg7/babel that referenced this pull request Jan 17, 2017
The filename options used by babylon is called `sourceFilename` and not `filename`. Therefore the option should be adjusted to be called `sourceFilename`.
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants