diff --git a/changelog.md b/changelog.md index 1885eaacd8..8bd556e331 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ ## Standard library additions and changes +- `prelude` now works with the JavaScript target. ## Language changes diff --git a/lib/prelude.nim b/lib/prelude.nim index 5ad5611583..d24f35513d 100644 --- a/lib/prelude.nim +++ b/lib/prelude.nim @@ -18,4 +18,5 @@ # .. code-block:: nim # import os, strutils, times, parseutils, parseopt, hashes, tables, sets -import os, strutils, times, parseutils, parseopt, hashes, tables, sets +import os, strutils, times, parseutils, hashes, tables, sets +when not defined(js): import parseopt