Skip to content

Commit 1ddb637

Browse files
committed
do not show spurious warnings about missing library deps
1 parent f450405 commit 1ddb637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ function JSify(data, functionsOnly, givenFunctions) {
408408
var redirectedIdent = null;
409409
var deps = LibraryManager.library[ident + '__deps'] || [];
410410
deps.forEach(function(dep) {
411-
if (!(dep in LibraryManager.library)) warn('missing library dependency ' + dep + ', make sure you are compiling with the right options (see #ifdefs in src/library*.js)');
411+
if (typeof snippet === 'string' && !(dep in LibraryManager.library)) warn('missing library dependency ' + dep + ', make sure you are compiling with the right options (see #ifdefs in src/library*.js)');
412412
});
413413
var isFunction = false;
414414

0 commit comments

Comments
 (0)