@@ -3222,9 +3222,6 @@ def phase_final_emitting(options, state, target, wasm_target, memfile):
3222
3222
minified_worker = building .acorn_optimizer (worklet_output , ['minifyWhitespace' ], return_output = True )
3223
3223
open (worklet_output , 'w' ).write (minified_worker )
3224
3224
3225
- # track files that will need native eols
3226
- generated_text_files_with_native_eols = []
3227
-
3228
3225
if settings .MODULARIZE :
3229
3226
modularize ()
3230
3227
@@ -3271,9 +3268,6 @@ def phase_final_emitting(options, state, target, wasm_target, memfile):
3271
3268
# The JS is now final. Move it to its final location
3272
3269
move_file (final_js , js_target )
3273
3270
3274
- if not settings .SINGLE_FILE :
3275
- generated_text_files_with_native_eols += [js_target ]
3276
-
3277
3271
target_basename = unsuffixed_basename (target )
3278
3272
3279
3273
# If we were asked to also generate HTML, do that
@@ -3290,8 +3284,8 @@ def phase_final_emitting(options, state, target, wasm_target, memfile):
3290
3284
diagnostics .warning ('experimental' , 'The SPLIT_MODULE setting is experimental and subject to change' )
3291
3285
do_split_module (wasm_target , options )
3292
3286
3293
- for f in generated_text_files_with_native_eols :
3294
- tools .line_endings .convert_line_endings_in_file (f , os .linesep , options .output_eol )
3287
+ if not settings . SINGLE_FILE :
3288
+ tools .line_endings .convert_line_endings_in_file (js_target , os .linesep , options .output_eol )
3295
3289
3296
3290
if options .executable :
3297
3291
make_js_executable (js_target )
0 commit comments