1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/app
Mark Stacey 3b30984ce5
Fix "app-init" injection (#15320)
* Fix "app-init" injection

The way we were injecting variables into the `app-init.js` bundle was
accidentally overwriting the bundle output with the raw `app-init.js`
source file. This is a problem because the bundling process handles a
lot of things we care about like source maps, polyfills and other
necessary Babel transformations, environment variable injection, and
minification.

Instead of using string replacement to inject variables, we are now
using environment variables. The old string replacement strategy has
been removed, and the `app-init.js` module is now generated using the
same process as our other bundles.

A new option, "extraEnvironmentVariables", was added to allow us to
inject environment variables specifically for this bundle.

* Add check to ensure APPLY_LAVAMOAT is set
2022-08-03 12:51:10 -02:30
..
_locales Add Sign-In with Ethereum (#14438) 2022-08-03 09:56:11 -05:00
build-types Dark Mode: Create Theme-friendly top left logo component (#13897) 2022-03-11 10:45:13 -06:00
fonts Add euclid fontface (#9018) 2020-07-27 17:15:44 -05:00
images Adding popular custom network integration (#14557) 2022-06-30 13:49:07 -02:30
manifest Remove web accessible resources from MV3 manifest (#15238) 2022-07-19 15:01:57 -02:30
scripts Fix "app-init" injection (#15320) 2022-08-03 12:51:10 -02:30
vendor/trezor Update postMessage structure for TrezorConnect 8 (#10192) 2021-01-21 11:12:54 -06:00
background.html Add applyLavaMoat build flag (#14583) 2022-04-29 15:56:30 -07:00
home.html Remove junk from previous ticket 2022-06-08 14:24:49 -07:00
loading.html refactor & change html pages 2019-05-04 18:57:19 +02:00
notification.html revert indenting change 2022-06-08 14:24:49 -07:00
popup.html Remove junk from previous ticket 2022-06-08 14:24:49 -07:00
trezor-usb-permissions.html trezor v5 working on firefox 2018-08-05 02:43:02 -04:00