Skip to content

Commit

Permalink
[Cloud Security] add sideEffects: false to shared csp packages (elast…
Browse files Browse the repository at this point in the history
…ic#197486)

## Summary

add `sideEffects: false` to shared packages for better tree shaking, see
[docs](https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free)
and [related
discussion](https://elastic.slack.com/archives/C5TQ33ND8/p1724317421954709?thread_ts=1724314732.061379&cid=C5TQ33ND8)

(cherry picked from commit 12ad715)
  • Loading branch information
maxcold committed Oct 25, 2024
1 parent ede41c1 commit b93d458
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"private": true,
"version": "1.0.0",
"license": "Elastic License 2.0",
"description": "Shared components for cloud security posture, both client and server side"
"description": "Shared components for cloud security posture, both client and server side",
"sideEffects": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"private": true,
"version": "1.0.0",
"license": "Elastic License 2.0",
"description": "Shared components for cloud security posture, client side"
"description": "Shared components for cloud security posture, client side",
"sideEffects": false
}

0 comments on commit b93d458

Please sign in to comment.