mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Remove module paths from bundle
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.
This commit is contained in:
parent
211f98c5c7
commit
eb55c0d1f7
15
patches/@lavamoat+lavapack+2.0.4.patch
Normal file
15
patches/@lavamoat+lavapack+2.0.4.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/node_modules/@lavamoat/lavapack/src/pack.js b/node_modules/@lavamoat/lavapack/src/pack.js
|
||||
index 8e5284f..f0e4a64 100644
|
||||
--- a/node_modules/@lavamoat/lavapack/src/pack.js
|
||||
+++ b/node_modules/@lavamoat/lavapack/src/pack.js
|
||||
@@ -204,7 +204,9 @@ function createPacker({
|
||||
// id,
|
||||
package: packageName,
|
||||
packageVersion,
|
||||
- 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user