Remove lodash/chunk (#13022)
This commit is contained in:
parent
d12f9a98c7
commit
830a93cc97
@ -22,7 +22,6 @@
|
|||||||
"@babel/helper-validator-identifier": "workspace:^7.12.11",
|
"@babel/helper-validator-identifier": "workspace:^7.12.11",
|
||||||
"@babel/template": "workspace:^7.12.13",
|
"@babel/template": "workspace:^7.12.13",
|
||||||
"@babel/traverse": "workspace:^7.13.0",
|
"@babel/traverse": "workspace:^7.13.0",
|
||||||
"@babel/types": "workspace:^7.13.0",
|
"@babel/types": "workspace:^7.13.0"
|
||||||
"lodash": "^4.17.19"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import assert from "assert";
|
import assert from "assert";
|
||||||
import * as t from "@babel/types";
|
import * as t from "@babel/types";
|
||||||
import template from "@babel/template";
|
import template from "@babel/template";
|
||||||
import chunk from "lodash/chunk";
|
|
||||||
|
|
||||||
import { isModule } from "@babel/helper-module-imports";
|
import { isModule } from "@babel/helper-module-imports";
|
||||||
|
|
||||||
@ -419,3 +418,11 @@ function buildInitStatement(metadata: ModuleMetadata, exportNames, initExpr) {
|
|||||||
}, initExpr),
|
}, initExpr),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function chunk(array, size) {
|
||||||
|
const chunks = [];
|
||||||
|
for (let i = 0; i < array.length; i += size) {
|
||||||
|
chunks.push(array.slice(i, i + size));
|
||||||
|
}
|
||||||
|
return chunks;
|
||||||
|
}
|
||||||
|
|||||||
@ -673,7 +673,6 @@ __metadata:
|
|||||||
"@babel/template": "workspace:^7.12.13"
|
"@babel/template": "workspace:^7.12.13"
|
||||||
"@babel/traverse": "workspace:^7.13.0"
|
"@babel/traverse": "workspace:^7.13.0"
|
||||||
"@babel/types": "workspace:^7.13.0"
|
"@babel/types": "workspace:^7.13.0"
|
||||||
lodash: ^4.17.19
|
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user