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 c2b39056c except for some unrelated files
also tested on master 877be984d
Additional context
contents of the file as well as length (308 bytes) and sha512:
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 c2b39056c except for some unrelated filesalso tested on master 877be984d
Additional context
contents of the file as well as length (308 bytes) and sha512: