Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(es/helpers): Update package exports for module-sync and webpack …
…compatibility (#9995) 1. Expose `module-sync` entry points for Node.js require(esm) compatibility. [^1] 2. Expose `webpack` entry points to piroitize esm entry for webpack-based bundlers, eliminating duplicate dependencies and code bloat. [^2] [^1]: https://nodejs.org/docs/latest-v22.x/api/modules.html#loading-ecmascript-modules-using-require:~:text=If%20%60%2D%2Dexperimental%2Drequire%2Dmodule%60%20is%20enabled%0A%20%20a.-,let%20CONDITIONS%20%3D%20%5B%22node%22%2C%20%22require%22%2C%20%22module%2Dsync%22%5D,-b.%20Else%2C%20let%20CONDITIONS%20%3D%20%5B%22node%22%2C%20%22require%22%5D%0A5 [^2]: https://webpack.js.org/guides/package-exports/#conditions-preprocessor-and-runtimes
- Loading branch information