Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Proxied Functions Do Not Handle Spreading

オープン
#214 コメント 0 件 リアクション 0 件 担当者 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) は、どちらの拡張子からでも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
平均マージ
20時間 1分
マージ済み PR(30日)
31

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

solidjs/solid-vite-plugin のほかの issue

solidjs/solid-vite-plugin の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。