-
Notifications
You must be signed in to change notification settings - Fork 615
feat: unbundled bb.js #14401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: unbundled bb.js #14401
Changes from 10 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
cd0b8de
first aproach
Thunkar 19b0e62
playground working
Thunkar 0ebd105
fix box build
Thunkar 4966a08
attempt to get rid of debug
Thunkar 4b89c83
removed workaround
Thunkar 0ffef8c
lock
Thunkar a97cf1a
fixes
Thunkar 2387c86
as buffer
Thunkar 522e052
simplification
Thunkar 7ca8777
whoops
Thunkar 5067fcf
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar ec44c2c
comments from PR
Thunkar b971bc0
got rid of debug completely
Thunkar 99f58b5
package.json and locks
Thunkar aee1d89
typo
Thunkar 92b6911
attempted cleanup
Thunkar 62b4271
pino
Thunkar f908b92
customlevels
Thunkar 12dbd12
default level
Thunkar 3aed431
renaming
Thunkar f1f6a91
completely remove process from unbundled bb
Thunkar 4ff9670
murder of webpack
Thunkar 2246e5e
lock
Thunkar 4fd3f39
keep the provider
Thunkar 183a652
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar 218fc04
wtf
Thunkar 912d1ab
attempt at getting more info
Thunkar 1274c67
proper logger
Thunkar e614b64
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar 4531fb5
make node logger inherit log level from process.env
Thunkar bcbfc44
fix
Thunkar 09aeb49
Merge branch 'master' into gj/unbundled_bb.js
Thunkar d19a446
fixed logging
Thunkar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,5 +7,9 @@ | |
| "headless-test", | ||
| "sol-test", | ||
| "bbjs-test" | ||
| ] | ||
| ], | ||
| "dependencies": { | ||
| "debug": "^4.4.1", | ||
| "tslog": "^4.9.3" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #!/bin/bash | ||
|
|
||
| DIR="./dest/browser" | ||
|
|
||
| # Remove all files under **/node/** | ||
| for node_file in $(find $DIR -type d -path "./*/node*"); do | ||
| rm -rf $node_file; | ||
| done | ||
|
|
||
| # Replace all **/node/** imports ante exports with **/browser/** | ||
|
Thunkar marked this conversation as resolved.
Outdated
|
||
| for file in $(find $DIR -type f -name "*.js"); do | ||
| sed -i 's/\([import|export]\)\(.*\)from\(.*\)\(\/node\/\)\(.*\)/\1\2from\3\/browser\/\5/' $file; | ||
| done | ||
|
|
||
| # Provide default wasm files as gziped base64 strings | ||
| for file in barretenberg barretenberg-threads; do | ||
| GZIP_FILE=${DIR}/barretenberg_wasm/$file.wasm.gz | ||
| BB_THREADS_BASE64=$(cat ${GZIP_FILE} | base64 -w0) | ||
| printf "const barretenberg = \"data:application/gzip;base64,$BB_THREADS_BASE64\"; \\nexport default barretenberg;" > $DIR/barretenberg_wasm/fetch_code/browser/$file.js | ||
| rm $GZIP_FILE | ||
| done | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.