@@ -134,23 +134,16 @@ let ppf = Format.err_formatter
134
134
(* Error messages to standard error formatter *)
135
135
136
136
let anonymous ~(rev_args : string list ) =
137
- if ! Js_config. as_ppx then
138
- match rev_args with
139
- | [output; input] ->
140
- Ppx_apply. apply_lazy ~source: input ~target: output
141
- Ppx_entry. rewrite_implementation Ppx_entry. rewrite_signature
142
- | _ -> Bsc_args. bad_arg " Wrong format when use -as-ppx"
143
- else
144
- match rev_args with
145
- | [filename] -> process_file filename ppf
146
- | [] -> ()
147
- | _ ->
148
- if ! Js_config. syntax_only then
149
- Ext_list. rev_iter rev_args (fun filename ->
150
- Clflags. reset_dump_state () ;
151
- Warnings. reset () ;
152
- process_file filename ppf)
153
- else Bsc_args. bad_arg " can not handle multiple files"
137
+ match rev_args with
138
+ | [filename] -> process_file filename ppf
139
+ | [] -> ()
140
+ | _ ->
141
+ if ! Js_config. syntax_only then
142
+ Ext_list. rev_iter rev_args (fun filename ->
143
+ Clflags. reset_dump_state () ;
144
+ Warnings. reset () ;
145
+ process_file filename ppf)
146
+ else Bsc_args. bad_arg " can not handle multiple files"
154
147
155
148
let format_file input =
156
149
let ext =
@@ -295,7 +288,6 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
295
288
string_call Js_packages_state. set_package_map,
296
289
" *internal* Set package map, not only set package name but also use it \
297
290
as a namespace" );
298
- (" -as-ppx" , set Js_config. as_ppx, " *internal*As ppx for editor integration" );
299
291
( " -as-pp" ,
300
292
unit_call (fun _ ->
301
293
Js_config. as_pp := true ;
0 commit comments