We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
🐛 bug report
No parcel config
<textarea v-model="input" rows="8" cols="200" onkeydown="if(event.keyCode===9){var v=this.value,s=this.selectionStart,e=this.selectionEnd;this.value=v.substring(0, s)+'\t'+v.substring(e);this.selectionStart=this.selectionEnd=s+1;return false;}"></textarea>
<textarea v-model="input" rows="8" cols="200" onkeydown="if(9===event.keyCode){var t=this.value,e=this.selectionStart,i=this.selectionEnd;return this.value=t.substring(0,e)+" \t"+t.substring(i),this.selectionStart="this.selectionEnd=e+1,!1}""></textarea>
onkeydown value is escaped incorrectly and code above has syntax error.
onkeydown
parcel index.html is OK while parcel build index.html is not.
parcel index.html
parcel build index.html
The text was updated successfully, but these errors were encountered:
Beautified:
original:
if (event.keyCode === 9) { var v = this.value, s = this.selectionStart, e = this.selectionEnd; this.value = v.substring(0, s) + '\t' + v.substring(e); this.selectionStart = this.selectionEnd = s + 1; return false; }
output:
if (9 === event.keyCode) { var t = this.value, e = this.selectionStart, i = this.selectionEnd; return this.value = t.substring(0, e) + " \t" + t.substring(i), this.selectionStart = "this.selectionEnd=e+1,!1}"
Sorry, something went wrong.
No branches or pull requests
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
No parcel config
🤔 Expected Behavior
😯 Current Behavior
onkeydown
value is escaped incorrectly and code above has syntax error.💁 Possible Solution
🔦 Context
parcel index.html
is OK whileparcel build index.html
is not.💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: