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

[DA] Support logical expressions in templates #49 #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alcocerd
Copy link
Collaborator

Description

Logical expressions in templates were not being explicitly handled in template-literal-indent-fix.js, so our bundling process would remove those expressions completely.

It could be reproduced by putting code under src/ such as

function proof(someValue?: string) {
  return `Some text ${ someValue || '' }`
}

and inspecting the output (eg build/umd/bundle.development.js). The logical expressions would be completely stripped. This PR ensures those expressions are not stripped.

PR Requirements

Before requesting review this criteria must be met:
Overall test coverage >= current master?

  • Yes
  • N.A.

Documentation included (if any behavioral changes)?

  • Yes
  • N.A.

Backwards compatibility (if breaking change)?

  • Yes
  • N.A.

Release

Will this pr trigger a release i.e. version in package.json has been bumped?

  • Yes
  • No

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.

1 participant