mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
8465a3c4aa
A patch has been added to ensure lavapack no longer includes the path for each module as part of each serialized module. This path was originally added for debugging purposes, and is not used for anything at runtime. The module path was an absolute path, not a relative one, so it was an obstacle to having reproducible builds between environments.
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
|
|
}
|