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

Error on parsing JSX with hard spaces in a new line and end of line #46

Closed
ukabuer opened this issue Nov 13, 2017 · 2 comments
Closed

Comments

@ukabuer
Copy link

ukabuer commented Nov 13, 2017

For example

<div>
  <a>1</a>&nbsp;
  &nbsp;
</div>

is compiled to

React.createElement( 'div', null,
  React.createElement( 'a', null, "1" )&nbsp;
  &nbsp;
)

here &nbsp; is an unexpected token.

BTW I think it would be nice to update the report bug link at https://buble.surge.sh to this repo

@adrianheine
Copy link
Member

adrianheine commented Nov 13, 2017

I've done the latter in bublejs/buble-demo#3.

Rich-Harris added a commit that referenced this issue Nov 18, 2017
Correctly handle nbsp (closes #46)
@Rich-Harris
Copy link
Collaborator

fixed in 0.18

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

No branches or pull requests

3 participants