bundle-source strips comments from type.js files? #1816
Labels
bug
Something isn't working
kriskowal-review-2024-01
Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024
Describe the bug
bundle-source
reduces severaltypes.js
files to more or less an empty module.@endo/marshal-v0.8.5/src/types.js
@endo/pass-style-v0.1.3/src/types.js
@endo/patterns-v0.2.2/src/types.js
@endo/promise-kit-v0.2.56/src/types.js
@endo/zip-v0.2.31/src/types.js
Steps to reproduce
yarn bundle-source --cache-json /tmp/bx src/types.js x
grep EncodingUnion src/types.js
jq -r .endoZipBase64 /tmp/bx/bundle-x.json| base64 -d >,x.zip
unzip ,x.zip
grep EncodingUnion @endo/marshal-v0.8.8/src/types.js
Expected behavior
Contents of source files should be substantially preserved, including comments.
Platform environment
ubuntu linux 22.04.3 LTS
node v18.17.1
endo version 1e2be8eaa
@endo/base64@0.2.34-129-g1e2be8eaa
which is the same as c2b3905 except for some unrelated files
also tested on master 877be98
Additional context
contents of the file as well as length (308 bytes) and sha512:
The text was updated successfully, but these errors were encountered: