Enabling different build targets for jsPsych plugins
Maintainers usually reply within 1 day
@bjoluc is already working on this.
Since May 16, 2025.
Assessment
This issue has not been assessed yet.
Description
Wanted to start a discussion and track the issue around build targets for jsPsych.
We're currently developing a plugin https://github.com/teonbrooks/plugin-voice-response that enables speech transcription but we're currently running into a problem where we get the following error:
[!] (plugin esbuild) Error: Transform failed with 15 errors:
<stdin>:1411:17733: ERROR: Big integer literals are not available in the configured target environment ("es2015")
<stdin>:1411:17760: ERROR: Big integer literals are not available in the configured target environment ("es2015")
<stdin>:1418:24595: ERROR: Big integer literals are not available in the configured target environment ("es2015")
<stdin>:1418:24611: ERROR: Big integer literals are not available in the configured target environment ("es2015")
<stdin>:11941:46: ERROR: Big integer literals are not available in the configured target environment ("es2015")
...
We think the source of this error is caused by our use of transformers.js/onnx-runtime, which uses Big integer literals.
I first fixed this with a hack by going into the node_modules of my plugin and editing the jspsych/config library directly by changing the build target from es2015 to es2020 in the Minified production IIFE build section. This made the error go away.
We decided to patch this the proper why by modifying the rollup.config.mjs within our plugin and reverting back the hack, but the error above seems to have returned and I don't know why.
cf. https://github.com/teonbrooks/plugin-voice-response/blob/dev-transformers/rollup.config.mjs
A few questions:
-
Does this config file seem alright? I was looking for a way to only modify the part of the config file I touched. Feedback is greatly appreciated :)
-
Is it possible to have different build targets for jspsych core and jspsych plugins?
-
I see that all the other build steps use
esnextinstead of a specified year. Changing it toesnextin jsPsych directly fixes the error as well. Could that be used without breaking other users' setup? If so, that would be the easiest solution.
cc: @becky-gilbert @jodeleeuw @jkhartshorne
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 745
- Avg merge
- 5h 50m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jspsych/jsPsych
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
DataColumn median/min/max/variance/sd treat null as 0 while mean() ignores itPossibly taken @Ester0Awad claimed this 12 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
record-video extension and html-video-response misparse the base64 string when include_audio is true in init_camera.Possibly taken A pull request linked to this issue is open or already merged. Openarea: extensions area: plugins bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area: core enhancement status: needs decision
Difficulty 5/5 Over a week Newbie friendliness 18/100
jspsych/jsPsych#3731 · 1 comment ·
Maintainers usually reply within 1 day
-
Data keys that start with a digit (e.g. "2back") are recorded as undefinedPossibly taken @sean0407 claimed this 53 days ago. Openarea: core bug help wanted
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
Similar issues
-
🔨 tool 🧰 library
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DISIC/teleservice-conformite#230 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rothgar/rabble.radio#410 ·
Maintainers usually reply within 1 day
-
Docker > Volumes: sorting by Size does nothing, and text columns sort inconsistentlyPossibly taken @BitPluto claimed this today. Openneeds-triage🔍
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Dokploy/dokploy#6203 · 1 comment ·
Maintainers usually reply within 1 day
-
area/webapp comp/desktop P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#163341 · 2 comments ·
Maintainers usually reply within 1 day