Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove check-constants plugin #6987
Conversation
This comment has been minimized.
This comment has been minimized.
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/6692/ |
Can you put the new code in a |
4ce5d08
to
98fa9ab
This comment has been minimized.
This comment has been minimized.
@nicolo-ribaudo Sorry for the delay. I'd still like to remove the check-constants plugin so I rebased the PR. The CI passed (98fa9ab) but after I moved the constants check into a separate method it failed due to timeout. Locally it passes. Any ideas? Does this way trigger redundant constant check runs through scopes and make things slower than before? I thought the |
This comment has been minimized.
This comment has been minimized.
@maurobringolf unlikely related to your PR/changes, restarted the build on circle |
This comment has been minimized.
This comment has been minimized.
Ahh nice, thank you! I didnt ask because the last time I did, it actually was an error in my code |
@@ -1,58 +0,0 @@ | |||
# @babel/plugin-check-constants | |||
|
|||
> Validate ES2015 constants (prevents reassignment of const variables). |
This comment has been minimized.
This comment has been minimized.
hzoo
Jan 26, 2018
Member
next pr: we should maybe include parts of this readme into the blocking scoping one?
This comment has been minimized.
This comment has been minimized.
maurobringolf
Jan 26, 2018
Author
Contributor
Good point, I can do this later tonight (today for you
This comment has been minimized.
This comment has been minimized.
* Rebased onto new version * Moved constants check into a separate method
maurobringolf commentedDec 7, 2017
This is a recreation of #6661 including the recent changes to
check-constants
.As discussed in the issue, I moved the code from
check-constants
intoblock-scoping
including the tests. I also removed all references to the plugin I could find.I had to pass
state
into theBlockScoping
class to accessaddHelper
. I am not sure if this is the best way to do it, but it seems to work so far.