1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove unused bundling options in build script (#15316)

Two unused options have been removed from the `createNormalBundle`
function in the build script: 'extraEntries` and `modulesToExpose`.'

Both of these options were used in the old "main" bundles, before we
began using the "factored" bundles. They have been unused since #11080.
This commit is contained in:
Mark Stacey 2022-07-21 19:33:06 -04:00 committed by GitHub
parent 5592687df1
commit 61783bbe89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -665,11 +665,9 @@ function createNormalBundle({
destFilepath, destFilepath,
devMode, devMode,
entryFilepath, entryFilepath,
extraEntries = [],
ignoredFiles, ignoredFiles,
label, label,
policyOnly, policyOnly,
modulesToExpose,
shouldLintFenceFiles, shouldLintFenceFiles,
testing, testing,
version, version,
@ -703,14 +701,7 @@ function createNormalBundle({
}); });
// set bundle entries // set bundle entries
bundlerOpts.entries = [...extraEntries]; bundlerOpts.entries = [entryFilepath];
if (entryFilepath) {
bundlerOpts.entries.push(entryFilepath);
}
if (modulesToExpose) {
bundlerOpts.require = bundlerOpts.require.concat(modulesToExpose);
}
// instrument pipeline // instrument pipeline
events.on('configurePipeline', ({ pipeline }) => { events.on('configurePipeline', ({ pipeline }) => {