Skip to content

Commit 46a219c

Browse files
feat: emit option
Removed the unnecessary check. Codecov was complaining about it and there is only one caller for this function a few lines below, dependencies is guaranteed to be an array
1 parent 0cbea18 commit 46a219c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/loader.js

-8
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,6 @@ export function pitch(request) {
199199
}
200200

201201
addDependencies = (dependencies) => {
202-
if (!Array.isArray(dependencies) && dependencies != null) {
203-
throw new Error(
204-
`Exported value was not extracted as an array: ${JSON.stringify(
205-
dependencies
206-
)}`
207-
);
208-
}
209-
210202
const identifierCountMap = new Map();
211203

212204
let lastDep;

0 commit comments

Comments
 (0)