[dll] run babel on all modules that aren't explicitly excluded#59923
Closed
spalger wants to merge 2 commits intoelastic:masterfrom
Closed
[dll] run babel on all modules that aren't explicitly excluded#59923spalger wants to merge 2 commits intoelastic:masterfrom
spalger wants to merge 2 commits intoelastic:masterfrom
Conversation
Contributor
|
Pinging @elastic/kibana-operations (Team:Operations) |
7 tasks
Contributor
💔 Build FailedTest FailuresKibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/index_management/__jest__/client_integration. on component mount review (step 5) should render a warning message if a wildcard is used as an index patternStandard OutStack TraceKibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/plugins/index_management/__jest__/client_integration. on component mount form payload & api errors should surface the API errors from the put HTTP requestStandard OutStack TraceTo update your PR or re-run it, just comment with: |
Contributor
Author
|
Turns out, I missed an incredibly important bit of code that lead me to the think that running node_modules through babel would be okay: This regular exception was still keeping everything out of the babel loader and as soon as node_modules is removed from that regex the optimizer slows to a crawl and fails to succeed before OOM-ing the process. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #59833
While trying to find a solution that allows us to validate that our DLL bundles don't include JS that breaks IE I started digging into possibly building a custom Webpack plugin and/or loader. During this investigation I realized something... Webpack is already parsing all of the code in our node_modules in order to determine dependencies and my fears of the performance impact of running node_modules through babel might be misplaced. I then decided to test out the performance impact of transpiling all modules in the DLL with babel and I'm pretty sure we don't actually see that much of a performance impact (like 2-4 seconds in dev).
I'm pushing this change up with shame, as I've been pushing back on making this change for so long and pushed a lot of people to work around this, but hopefully people will forgive me...
Also, I'd like to make sure that performance is still manageable for other team members as I'm testing on an iMac Pro.