Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Proxied Functions Do Not Handle Spreading

未关闭
#214 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@brenelz 已经在做这个了。

开始于 2026年9月18日。

  • #87 来自 @brenelz —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript

调研方向

从最小复现开始,比较源函数位于 .jsx 文件与 .js 文件中时的处理方式。跟踪 plugin 对 spread 语法的处理,并通过运行复现来验证修复:无论使用哪种扩展名,GlobalTest(1,2,3) 都应保留并记录全部三个参数。

由索引模型根据 Issue 内容生成。

描述

The Spreading syntax does not work the same way as it does in normal javascript. The spreading (...) syntax of an array into a function gives the wrong value. When imported from a .js file, the function behaves as expected, however when imported from a .jsx file, the function only puts the first value of the array into a new array.

How To Reproduce
-> Create a new vanilla Solid-js application.
-> Create a new jsx file, and make a function that uses the spread
-> call the spreaded function from any other file I.E(the default app)
-> Changing the file extension back to js, changes the behavior.

Minimum Reproduction


//In a File, the source function
function GlobalTest(...arr){
 console.log(...arr);
}

//Inside of app.jsx
import {GlobalTest} from 'otherfile'

GlobalTest(1,2,3); //  should see a '1' in the log when the source function is in a .jsx
GlobalTest(1,2,3); //  should see a '1 2 3' in the log when the source function is in a .js
主要语言
TypeScript
星标
522
派生
72
平均合并
1 天 3 小时
30 天内合并 PR
38

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

solidjs/solid-vite-plugin 的其他 Issue

查看 solidjs/solid-vite-plugin 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。