1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts
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
..
account-import-strategies Use strict assertion mode everywhere (#11012) 2021-05-07 17:08:24 -02:30
constants Add goerli, bsc, optimism, polygon, avalance, fantom, arbitrum network to query balances using BalanceChecker (#13846) 2022-07-18 10:51:18 -05:00
controllers Stop throwing an error when adding gas defaults for a simple send, that has data, to an address without a response code (#15424) 2022-08-02 22:14:21 -02:30
lib Add Sign-In with Ethereum (#14438) 2022-08-03 09:56:11 -05:00
migrations update prettier (#15360) 2022-07-31 13:26:40 -05:00
platforms update prettier (#15360) 2022-07-31 13:26:40 -05:00
app-init.js Fix "app-init" injection (#15320) 2022-08-03 12:51:10 -02:30
background.js update prettier (#15360) 2022-07-31 13:26:40 -05:00
contentscript.js Remove usage of querystring from contentscript (#15112) 2022-07-19 13:40:54 -05:00
detect-multiple-instances.js Warn about multiple MetaMask instances running (#13836) 2022-04-27 20:14:10 +02:00
detect-multiple-instances.test.js Warn about multiple MetaMask instances running (#13836) 2022-04-27 20:14:10 +02:00
disable-console.js Update Eslint and deps (#15293) 2022-07-26 13:10:51 -05:00
first-time-state.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
init-globals.js MV3: fix injection of applyLavamoat variable in service worker (#14920) 2022-06-18 12:40:30 +05:30
inpage.js @metamask/providers@8.1.1 (#11078) 2021-05-12 19:51:14 -07:00
lockdown-more.js remove exclusions for mismatched object jsdoc type casing (#15351) 2022-07-27 08:28:05 -05:00
lockdown-run.js lockdown - breakout making globalThis properties non-writable (#12258) 2021-10-01 08:53:12 -10:00
metamask-controller.js update prettier (#15360) 2022-07-31 13:26:40 -05:00
metamask-controller.test.js update prettier (#15360) 2022-07-31 13:26:40 -05:00
sentry-install.js Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00
ui.js MV3: Re-activate service worker and reconnect UI streams (#14781) 2022-08-01 18:53:21 +05:30