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

feat: add CSX patching #1282

Merged
merged 1 commit into from
Mar 19, 2018
Merged

Conversation

alangpierce
Copy link
Member

This mostly just worked, but there were a few details:

  • Strings needed their own case, since CSX allows interpolated strings that
    aren't surrounded in curly braces, so we need to sometimes add curly braces.
  • For some reason <div /> arg (a function call) works and there's a test for
    it, but introducing the implicit parens causes a syntax error. To make it not
    a syntax error, I wrap the LHS in parens in that one case.
  • I had to upgrade esnext in order to support fragment syntax. This ended up
    breaking some optional chaining forms that are no longer supported in the
    latest proposal, so I disabled those tests.

I also fixed a TypeScript warning in update-website.ts that I ran into when
trying TypeScript configurations.

This mostly just worked, but there were a few details:
* Strings needed their own case, since CSX allows interpolated strings that
  aren't surrounded in curly braces, so we need to sometimes add curly braces.
* For some reason `<div /> arg` (a function call) works and there's a test for
  it, but introducing the implicit parens causes a syntax error. To make it not
  a syntax error, I wrap the LHS in parens in that one case.
* I had to upgrade esnext in order to support fragment syntax. This ended up
  breaking some optional chaining forms that are no longer supported in the
  latest proposal, so I disabled those tests.

I also fixed a TypeScript warning in update-website.ts that I ran into when
trying TypeScript configurations.
@alangpierce alangpierce merged commit a185045 into decaffeinate:master Mar 19, 2018
@eventualbuddha
Copy link
Collaborator

🎉 This PR is included in version 4.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

hneiva pushed a commit to hneiva/decaffeinate that referenced this pull request May 10, 2019
This mostly just worked, but there were a few details:
* Strings needed their own case, since CSX allows interpolated strings that
  aren't surrounded in curly braces, so we need to sometimes add curly braces.
* For some reason `<div /> arg` (a function call) works and there's a test for
  it, but introducing the implicit parens causes a syntax error. To make it not
  a syntax error, I wrap the LHS in parens in that one case.
* I had to upgrade esnext in order to support fragment syntax. This ended up
  breaking some optional chaining forms that are no longer supported in the
  latest proposal, so I disabled those tests.

I also fixed a TypeScript warning in update-website.ts that I ran into when
trying TypeScript configurations.
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.

2 participants