mirror of
https://github.com/status-im/metro.git
synced 2025-01-21 00:19:31 +00:00
Drop unused arg
Summary: Small refactor Reviewed By: mjesun Differential Revision: D6884242 fbshipit-source-id: b811238c91b0e82d8b25420aa1b463f9d8293482
This commit is contained in:
parent
23e4d7abae
commit
92e9cfa050
@ -33,11 +33,7 @@ function buildBundle(
|
||||
});
|
||||
}
|
||||
|
||||
function createCodeWithMap(
|
||||
map: string,
|
||||
dev: boolean,
|
||||
sourceMapSourcesRoot: string,
|
||||
): string {
|
||||
function createCodeWithMap(map: string, sourceMapSourcesRoot: string): string {
|
||||
const sourceMap = relativizeSourceMap(
|
||||
(JSON.parse(map): MetroSourceMap),
|
||||
sourceMapSourcesRoot,
|
||||
@ -53,7 +49,6 @@ function saveBundleAndMap(
|
||||
const {
|
||||
bundleOutput,
|
||||
bundleEncoding: encoding,
|
||||
dev,
|
||||
sourcemapOutput,
|
||||
sourcemapSourcesRoot,
|
||||
} = options;
|
||||
@ -61,7 +56,7 @@ function saveBundleAndMap(
|
||||
let {map} = bundle;
|
||||
if (sourcemapSourcesRoot !== undefined) {
|
||||
log('start');
|
||||
map = createCodeWithMap(map, !!dev, sourcemapSourcesRoot);
|
||||
map = createCodeWithMap(map, sourcemapSourcesRoot);
|
||||
log('finish');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user