We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b2381b commit 688746aCopy full SHA for 688746a
src/bindings/js.ts
@@ -300,7 +300,7 @@ export class JSBuilder extends ExportsWalker {
300
sb.push(escapeString(name, CharCode.DoubleQuote));
301
sb.push("\"");
302
}
303
- if (isPlainFunction(signature, Mode.Import) && !code) {
+ if (isPlainFunction(signature, Mode.Import) && !code && isIdentifier(name)) {
304
sb.push(": (\n");
305
indent(sb, this.indentLevel + 1);
306
sb.push("// ");
0 commit comments