Skip to content

Commit

Permalink
fix: Generate wrapper binding functions for non-identifier imports (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
CountBleck committed Apr 23, 2023
1 parent 3b2381b commit 688746a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindings/js.ts
Expand Up @@ -300,7 +300,7 @@ export class JSBuilder extends ExportsWalker {
sb.push(escapeString(name, CharCode.DoubleQuote));
sb.push("\"");
}
if (isPlainFunction(signature, Mode.Import) && !code) {
if (isPlainFunction(signature, Mode.Import) && !code && isIdentifier(name)) {
sb.push(": (\n");
indent(sb, this.indentLevel + 1);
sb.push("// ");
Expand Down

0 comments on commit 688746a

Please sign in to comment.