We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 171e03a commit a16e51fCopy full SHA for a16e51f
CHANGELOG.md
@@ -12,6 +12,10 @@
12
13
# 11.1.3-rc.1
14
15
+#### :bug: Bug Fix
16
+
17
+- Omit standard library dir from load path if -nostdlib is set. https://github.com/rescript-lang/rescript-compiler/pull/6833
18
19
# 11.1.2
20
21
#### :bug: Bug Fix
jscomp/core/res_compmisc.ml
@@ -27,7 +27,9 @@ let init_path () =
27
let exp_dirs =
28
List.map (Misc.expand_directory Config.standard_library) dirs
29
in
30
- Config.load_path := List.rev_append exp_dirs [Config.standard_library];
+ Config.load_path :=
31
+ if !Js_config.no_stdlib then exp_dirs
32
+ else (List.rev_append exp_dirs [Config.standard_library]);
33
Env.reset_cache ()
34
35
(* Return the initial environment in which compilation proceeds. *)
0 commit comments