mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
35dbdbc438
A patch made in #15672 was found to be unnecessary. Instead of setting a `rootGlobals` object upon construction of the root compartment, we are now creating a `sentryHooks` object in the initial top-level compartment. I hadn't realized at the time that the root compartment would inherit all properties of the initial compartment `globalThis`. This accomplishes the same goals as #15672 except without needing a patch.
16 lines
675 B
Diff
16 lines
675 B
Diff
diff --git a/node_modules/@lavamoat/lavapack/src/pack.js b/node_modules/@lavamoat/lavapack/src/pack.js
|
|
index eb41a0a..3f891ea 100644
|
|
--- a/node_modules/@lavamoat/lavapack/src/pack.js
|
|
+++ b/node_modules/@lavamoat/lavapack/src/pack.js
|
|
@@ -203,7 +203,9 @@ function createPacker({
|
|
const jsonSerializeableData = {
|
|
// id,
|
|
package: packageName,
|
|
- file,
|
|
+ // Omit this absolute filename from bundle so that builds are reproducible between environments
|
|
+ // TODO: update lavapack with an option to omit this, and/or make this filepath relative to the current working directory
|
|
+ // file,
|
|
// deps,
|
|
// source: sourceMeta.code
|
|
}
|