-
Notifications
You must be signed in to change notification settings - Fork 143
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
Why are __self and __source passed as props in compiled JSX code? #232
Comments
It's extra debugging information included in the Babel 7 version of See the package READMEs for more info: I suppose it may be best to disable for production builds, but for now I'll keep the options simple and always leave it on, since Sucrase is primarily intended for development. |
Would it be possible to make this not spam the Inspector in Chrome and Firefox? I'm using preact. EDIT: Maybe there's nothing Sucrase can do: preactjs/preact#1058 However, I'm using Sucrase for a browser extension. I have no need for Babel. I'm actually using Sucrase for the production build (which is almost identical to the development build). It's nice not having to set up two "build systems". So I'd appreciate an option to turn this off for production. Maybe Preact users want to always turn it off – I don't think Preact uses it? EDIT again: Found that I can pass |
@lydell cool, glad you found the |
compiles to
I'm curious about what
__self
and__source
are used for.The text was updated successfully, but these errors were encountered: