Merge pull request #3479 from alexrockhill/fix/import

BUG: Compiler error cannot find script
This commit is contained in:
Josh de Leeuw 2025-01-07 11:13:34 -05:00 committed by GitHub
commit cee18f8e6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"jspsych": patch
---
Modify import of seedrandom to fix build issue with some configurations of webpack

View File

@ -1,5 +1,5 @@
import rw from "random-words"; import rw from "random-words";
import seedrandom from "seedrandom/lib/alea"; import seedrandom from "seedrandom/lib/alea.js";
/** /**
* Uses the `seedrandom` package to replace Math.random() with a seedable PRNG. * Uses the `seedrandom` package to replace Math.random() with a seedable PRNG.