Uh oh!
There was an error while loading. Please reload this page.
ARROW-10255: [JS] Reorganize exports for ESM tree-shaking - #8418
ARROW-10255: [JS] Reorganize exports for ESM tree-shaking#8418trxcllnt wants to merge 16 commits into
Conversation
… its own Buffer polyfill
The arg parsing utilities import Data, Column, Vector, and Chunked, which means they can't be tree-shaken out.
* Remove namespaces from flatbuffers generated code because it interferes with tree-shaking * Update flatbuffers generation docs * Update internal flatbuffers imports
… its own Buffer polyfill
The arg parsing utilities import Data, Column, Vector, and Chunked, which means they can't be tree-shaken out.
* Remove namespaces from flatbuffers generated code because it interferes with tree-shaking * Update flatbuffers generation docs * Update internal flatbuffers imports
trxcllnt
commented
Apr 6, 2021
cc @domoritz if you want to add a review |
domoritz
left a comment
There was a problem hiding this comment.
Looks good to me except for the eval.
Uh oh!
There was an error while loading. Please reload this page.
@kszucs what's the current preferred way to merge PRs? Is it still the Python script that closes the JIRAs, or can we use the GitHub UI now? |
kszucs
commented
Apr 8, 2021
@trxcllnt the python script is still the preferred one. Do you want me to merge it? |
trxcllnt
commented
Apr 8, 2021
@kszucs yes if you would be so kind 🙏 🙂 |
alippai
commented
Apr 27, 2021
@trxcllnt "use eval to lookup node's Buffer, tricking webpack into not including its own Buffer polyfill" this looks bad, I get error "Cannot access 'Buffer' before initialization" when bundling using Rollup. Is there a breaking change docs I should follow or should I submit this as a new bug? |
trxcllnt
commented
Apr 27, 2021
@alippai wrapping this check in |
alippai
commented
Apr 27, 2021
You might be right, it's not consistent when do I get the exception (removing eval before or after the bundling). I'll look into it tomorrow and open an issue if it can be fixed easily. |
alippai
commented
Apr 27, 2021
|
alippai
commented
Apr 28, 2021
We might not need |
Related JIRA: https://issues.apache.org/jira/browse/ARROW-10255
Opening this as a draft PR for ongoing work to make our ESM exports more friendly to tree-shaking.