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:
parent
5592687df1
commit
61783bbe89
@ -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 }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user