Skip to content

Commit

Permalink
Add explanation to browser.esm build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Oct 10, 2023
1 parent 8a8d2ae commit 51e091d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rollup.browser.esm.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ export default [
preventAssignment: true,
changed: "replaced",
delimiters: ["", ""],
/*
* The following variable replaces to true in the build in the similar way as snarkjs does.
* https://github.com/iden3/snarkjs/blob/ef9042451f98f254b520b8ce9b9544a849e90a5d/config/rollup.iife.config.js
*/
"process.browser": true,
/*
Because of some frontend frameworks uses monkey patching to track UI changes or other purposes (including Angular, AngularJS, Ember.js, JQuery...), it's important to make sure that the thread function is not modified by the framework and passing in the web worker as it is.
Because of some frontend frameworks uses monkey patching to track UI changes or other purposes (including Angular, AngularJS, Ember.js, JQuery...), it's important to make sure that the thread function is not modified by the framework and passing in the web worker as it is.
*/
"thread.toString()": JSON.stringify(thread.toString()),
}),
Expand Down

0 comments on commit 51e091d

Please sign in to comment.