mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +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:
parent
5592687df1
commit
61783bbe89
@ -665,11 +665,9 @@ function createNormalBundle({
|
||||
destFilepath,
|
||||
devMode,
|
||||
entryFilepath,
|
||||
extraEntries = [],
|
||||
ignoredFiles,
|
||||
label,
|
||||
policyOnly,
|
||||
modulesToExpose,
|
||||
shouldLintFenceFiles,
|
||||
testing,
|
||||
version,
|
||||
@ -703,14 +701,7 @@ function createNormalBundle({
|
||||
});
|
||||
|
||||
// set bundle entries
|
||||
bundlerOpts.entries = [...extraEntries];
|
||||
if (entryFilepath) {
|
||||
bundlerOpts.entries.push(entryFilepath);
|
||||
}
|
||||
|
||||
if (modulesToExpose) {
|
||||
bundlerOpts.require = bundlerOpts.require.concat(modulesToExpose);
|
||||
}
|
||||
bundlerOpts.entries = [entryFilepath];
|
||||
|
||||
// instrument pipeline
|
||||
events.on('configurePipeline', ({ pipeline }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user