-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Re-enable babel-plugin-transform-react-constant-elements when it’s not buggy #553
Comments
Friendly update: I have a PR in to fix babel/babel#3728. Additionally, babel/babel#4455 doesn't appear to be an issue in the current version (based on my testing with the info provided in the issue). I'll be working on babel/babel#4027 pretty soon so that we can get Once those are done, I'll start trying to look into the pile of |
Wow, thank you! |
Alright, have a PR in for babel/babel#4027 now, too. Once those 2 PRs get merged, you should be ready to re-enable that plugin 😸 |
These one's can be checked off for
It turns out Sebastian fixed these here in July, and the issues just never got closed out. Few more to go 😃 |
OK, after the release today, all the bugs related to |
FYI: I just submitted PR babel/babel#4940 that fixes babel/babel#4419 and babel/babel#4804 (which should be added to the list above, and babel/babel#4458 should be updated as closed). There's an existing PR (babel/babel#4787) to address babel/babel#4397, but it looks stalled on implementation details. |
Neat, @appden! I've added babel/babel#4804 to the list. I don't want to check off babel/babel#4458 (yet) because it seems to have been "magically" fixed without a trace of where the regression was introduced or resolved. We can save that one for last and determine if we want to let it slide. |
@gaearon you might want to track this one too: babel/babel#5149 |
Thanks, added to the list. |
And... we're good? 🤗 |
With next Babel release that is. |
* Bump babel deps * Re-enable transform-react-constant-elements Resolves #553
@gaearon there might be other bugs discovered:
Maybe it's worth waiting a bit for community feedback after the fixes, and only reactivate this in CRA when it looks stable? |
👍 |
* Bump babel deps * Re-enable transform-react-constant-elements Resolves facebook#553
* Bump babel deps * Re-enable transform-react-constant-elements Resolves facebook#553
left a comment in babel/babel/issues/5325, for me I had to make sure I to make sure that babel-plugin-transform-react-constant-elements was the last plugin listed in order for it to work without error |
Adding the constant-elements plugin last solved the problem for me too |
Wow, thanks for the info. Seems like we have to wait for 7.0 for babel/babel#5415 though. |
Some other issues related to the plugin have been opened since: https://github.com/babel/babel/search?q=transform-react-constant-elements&type=Issues&utf8=%E2%9C%93 |
Postponing as issues just keep coming up. 😞 |
Maybe you can "prepack" it?
man. 8. mai 2017 kl. 16.36 skrev Dan Abramov <[email protected]>:
Postponing as issues just keep coming up. 😞
I’m not sure we’ll ever enable it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#553 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM5PwARtHPy0KDuvSZsRI1hya_qU6KFks5r3yh_gaJpZM4J0Fxp>
.
--
…__________________
Tarjei Huse
Mobil: 920 63 413
|
Looks like the last two unchecked items on the list are closed issues: babel/babel#5325 Are we good to go here now? |
I think they're waiting for Babel 7. |
…ia stage-0 preset. Removed babel-plugin-transform-react-constant-elements due to known issues (see facebook/create-react-app#553)
…ed babel-polyfill usage (#102) * Removed babel-plugin-syntax-dynamic-import as it's already included via stage-0 preset. Removed babel-plugin-transform-react-constant-elements due to known issues (see facebook/create-react-app#553) * PLAT-40726: Support babel-preset-env with dynamic targetted babel-polyfill usage. * ENYO-4798: Babel improvements via additional plugins * Remove blank comment line * Exclude transform-regenerator to avoid regenerator runtime as that's not a supported feature anyway. * Disable web.dom.iterable polyfill as its window/DOM-related and not a strict js polyfill. Unneeded for context of Enact app. * Remove webOS build option. Instead, for webOS,set target browser or BROWSERSLIST env var to "Chrome 53" * Remove webOS alias option Reviewed-By: Roy Sutton ([email protected]) Integrated-By: Aaron Tam ([email protected])
Honestly I don't see this happening. New bugs keep reappearing, and I expect this will continue to be true unless Babel's architecture gets overhauled. The plugin itself is also not the best solution because it moves the cost to initialization time, potentially hurting the TTI. An ideal solution would only initialize what's necessary on demand. I think we won't proceed with this. In the future (one-two years) I expect we can revisit a similar optimization utilizing Prepack instead. |
What about babel-plugin-transform-react-inline-elements? Any reason to not enabling this plugin? |
* Bump babel deps * Re-enable transform-react-constant-elements Resolves facebook#553
See #525 for the reference.
The text was updated successfully, but these errors were encountered: