We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95df049 commit 904423dCopy full SHA for 904423d
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