Do not quote JSX attribute keys for IdentifierName (#8045)

Given the following

```js
a = <F new/>
```

We used to generate:

```js
a = React.createElement(F, {"new": true})
```

but now we generate

```js
a = React.createElement(F, {new: true})
```

If you need to quote these (ie for ES3 you can use
transform-property-literals)
This commit is contained in:
Erik Arvidsson
2018-05-27 09:48:18 -07:00
committed by Justin Ridgewell
parent d45ee5e025
commit 7846eaebaa
7 changed files with 28 additions and 7 deletions

View File

@@ -1,3 +1,3 @@
var test = babelHelpers.jsx(T, {
"default": " some string "
default: " some string "
});