Skip to content

Conversation

@benjamn
Copy link
Contributor

@benjamn benjamn commented Nov 13, 2013

Most notably, this new style of transformation gives us access to this.parent.node, which allows us to avoid replacing identifiers that are not actually free variables, such as member expression properties.

Closes #496.

@zpao
Copy link
Member

zpao commented Nov 13, 2013

👍

Most notably, this new style of transformation gives us access to
this.parent.node, which allows us to avoid replacing identifiers that are
not actually free variables, such as member expression properties.

Closes facebook#496.
benjamn added a commit that referenced this pull request Nov 13, 2013
Rewrite vendor/constants.js to use require("recast").types.traverse.
@benjamn benjamn merged commit 5873ee7 into facebook:master Nov 13, 2013
benjamn added a commit to benjamn/react that referenced this pull request Dec 4, 2013
Pull request facebook#526 updated the behavior of vendor/constants.js without
changing any source files or the bin/jsx-internal script, so files that
should have been rebuilt (like utils/__tests__/ImmutableObject-test.js)
were not automatically rebuilt (unless you knew to do `grunt clean` or
`rm -rf .module-cache` manually).

This commit allows us to bump a version number when we know the transform
toolchain has been altered in a way that will not be visible to
commoner/jsx.

With this convention, if we reset to an older revision (e.g. during a git
bisect) and the appropriate cached module files are still in the
.module-cache/, they can be used without rebuilding. That's why I prefer
this approach to just deleting the .module-cache/.

Closes facebook#104.
Closes facebook#496.
Closes facebook#530.
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.

window.__DEV__ should not be compiled to window.true

2 participants