-
Notifications
You must be signed in to change notification settings - Fork 2
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
pattern for stripping binder documentation #23
Comments
Is the goal is hiding behind |
Based on comment "...stripped out in builds and only runs when ?binder is specified", that appears to be the goal. |
If it helps, it's possible to override other globals as |
11/29/18 dev meeting: @samreid options: (1) get rid of @zepumph create a lint rule to allow only @mbarlow12 Not sure what direction binder is going to go in. This approach gets SVGs from the sim. So wondering if this is even something that we want to keep. @jonathanolson @samreid Assigned to @mbarlow12 to determine whether this is needed for binder. If not, remove it. If it is needed, then bring it up for discussion again at dev meeting. @samreid If it's needed, then using a different flag is a likely option. |
Note that there are now 57 usages of this pattern. |
I think that the way forward would be a new global that is set to false when building code, so that the optimizer strips this out. I think that a general thing, like "isUnbuilt" seems better that something specific like "usingBinder." This way we only need to touch the build process to support this once. I will add this to my plate at a low priority. |
I see 12 occurrence of
assert && phet.chipper.queryParameters.binder
...For example, in Slider.js:
Using
assert
in this way (to strip out things other thanassert
) seems a bit questionable. Labeling for discussion at developer meeting.The text was updated successfully, but these errors were encountered: