Skip to content

Commit c333bee

Browse files
wwilsmanCompuIves
authored andcommitted
Fix app dependency loader error (codesandbox#932)
1 parent 866ba73 commit c333bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/sandbox/npm/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default async function loadDependencies(dependencies: NPMDependencies) {
2222
// We filter out all @types, as they are not of any worth to the bundler
2323
const dependenciesWithoutTypings = pickBy(
2424
dependencies,
25-
(val, key) => !key.includes('@types')
25+
(val, key) => !(key.includes && key.includes('@types'))
2626
);
2727

2828
const depQuery = dependenciesToQuery(dependenciesWithoutTypings);

0 commit comments

Comments
 (0)