Skip to content

Commit

Permalink
Merge pull request #3479 from alexrockhill/fix/import
Browse files Browse the repository at this point in the history
BUG: Compiler error cannot find script
  • Loading branch information
jodeleeuw authored Jan 7, 2025
2 parents 9d8597f + 2f84139 commit cee18f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thick-waves-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"jspsych": patch
---

Modify import of seedrandom to fix build issue with some configurations of webpack
2 changes: 1 addition & 1 deletion packages/jspsych/src/modules/randomization.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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.
Expand Down

0 comments on commit cee18f8

Please sign in to comment.