[build] Removes commonjs transforms#66506
Conversation
b724a7a to
6c58e26
Compare
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
6c58e26 to
5b14d95
Compare
| { | ||
| "presets": ["@kbn/babel-preset/webpack_preset"], | ||
| "plugins": [ | ||
| "@babel/plugin-transform-modules-commonjs", |
There was a problem hiding this comment.
This project is required from both server/client code and only has a single build output - a follow-up could be to build separate packages but out of the scope for this PR.
There was a problem hiding this comment.
Hmm, yeah, it used to build separate outputs...
There was a problem hiding this comment.
The plan is to remove this package eventually as the expressions plugin should already be exposing all of this functionality.
|
Pinging @elastic/kibana-operations (Team:Operations) |
Introduced in elastic#66432 and I have a more thorough PR to prevent imports in server from public in elastic#67149 Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
|
Pinging @elastic/apm-ui (Team:apm) |
|
@elasticmachine merge upstream |
majagrubic
left a comment
There was a problem hiding this comment.
kibana-app changes look good!
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co> Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> # Conflicts: # packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts # src/optimize/base_optimizer.js # src/optimize/create_ui_exports_module.js
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
6 similar comments
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
We should not be allowing importing of public into server. Any shared code should reside in a common directory. After elastic#66506, this will not even be possible as we will no longer be transpiling public code into commonjs. Blocks elastic#66506 Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
We should not be allowing importing of public into server. Any shared code should reside in a common directory. After #66506, this will not even be possible as we will no longer be transpiling public code into commonjs. Blocks #66506 Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Blocker for tree shaking
It's not necessary for us to transform to commonjs, and removing the step reduces the builds by ~27%