Back to Rolldown

Failed Cases

scripts/src/esbuild-tests/snap-diff/summary/dce.md

0.15.117.3 KB
Original Source

Failed Cases

dce_of_iife

https://github.com/oxc-project/oxc/issues/17480 and sub optimal: IIFEs are not unwrapped in some cases

tree_shaking_lowered_class_static_field

sub optimal: REMOVE_ME class can be removed

tree_shaking_react_elements

sub optimal: React.Fragment should be removed

tree_shaking_unary_operators

rejected due to https://github.com/rolldown/rolldown/issues/7009

Passed Cases

base64_loader_remove_unused

const_value_inlining_bundle

const_value_inlining_direct_eval

const_value_inlining_no_bundle

cross_module_constant_folding_computed_property_name

cross_module_constant_folding_number

cross_module_constant_folding_string

data_url_loader_remove_unused

dce_class_static_blocks

dce_class_static_blocks_minify_syntax

dce_of_decorators

dce_of_destructuring

dce_of_experimental_decorators

dce_of_expr_after_keep_names_issue3195

dce_of_iterator_superclass_issue4310

dce_of_negated_bigints

dce_of_symbol_ctor_call

dce_of_symbol_for_call

dce_of_symbol_instances

dce_of_using_declarations

dce_template_literal

dce_type_of

dce_type_of_compare_string_guard_condition

dce_type_of_equals_string

dce_type_of_equals_string_guard_condition

dce_type_of_equals_string_mangle

dce_var_exports

dead_code_following_jump

dead_code_inside_empty_try

disable_tree_shaking

drop_label_tree_shaking_bug_issue3311

drop_labels

file_loader_remove_unused

import_re_export_of_namespace_import

inline_empty_function_calls

inline_function_call_behavior_changes

inline_function_call_for_init_decl

inline_identity_function_calls

json_loader_remove_unused

multiple_declaration_tree_shaking

multiple_declaration_tree_shaking_minify_syntax

nested_function_inlining_with_spread

no_side_effects_comment

no_side_effects_comment_ignore_annotations

no_side_effects_comment_minify_whitespace

no_side_effects_comment_type_script_declare

no_side_effects_comment_unused_calls

package_json_side_effects_array_glob

package_json_side_effects_array_keep

package_json_side_effects_array_keep_main_implicit_module

package_json_side_effects_array_keep_main_use_main

package_json_side_effects_array_keep_main_use_module

package_json_side_effects_array_keep_module_implicit_module

package_json_side_effects_array_keep_module_use_module

package_json_side_effects_array_remove

package_json_side_effects_false_all_fork

package_json_side_effects_false_cross_platform_slash

package_json_side_effects_false_intermediate_files_chain_all

package_json_side_effects_false_intermediate_files_chain_one

package_json_side_effects_false_intermediate_files_diamond

package_json_side_effects_false_intermediate_files_unused

package_json_side_effects_false_intermediate_files_used

package_json_side_effects_false_keep_bare_import_and_require_common_js

package_json_side_effects_false_keep_bare_import_and_require_es6

package_json_side_effects_false_keep_named_import_common_js

package_json_side_effects_false_keep_named_import_es6

package_json_side_effects_false_keep_star_import_common_js

package_json_side_effects_false_keep_star_import_es6

package_json_side_effects_false_no_warning_in_node_modules_issue999

package_json_side_effects_false_one_fork

package_json_side_effects_false_remove_bare_import_common_js

package_json_side_effects_false_remove_bare_import_es6

package_json_side_effects_false_remove_named_import_common_js

package_json_side_effects_false_remove_named_import_es6

package_json_side_effects_false_remove_star_import_common_js

package_json_side_effects_false_remove_star_import_es6

package_json_side_effects_keep_export_default_expr

package_json_side_effects_nested_directory_remove

package_json_side_effects_true_keep_common_js

package_json_side_effects_true_keep_es6

preserve_directives_minify_bundle

preserve_directives_minify_iife

preserve_directives_minify_pass_through

pure_calls_with_spread

remove_code_after_label_with_return

remove_trailing_return

remove_unused_import_meta

remove_unused_imports

remove_unused_imports_eval

remove_unused_imports_eval_ts

remove_unused_pure_comment_calls

text_loader_remove_unused

top_level_function_inlining_with_spread

tree_shaking_binary_operators

tree_shaking_class_property

tree_shaking_class_static_property

tree_shaking_import_identifier

tree_shaking_in_esm_wrapper

tree_shaking_lowered_class_static_field_assignment

tree_shaking_lowered_class_static_field_minified

tree_shaking_no_bundle_cjs

tree_shaking_no_bundle_esm

tree_shaking_no_bundle_iife

tree_shaking_object_property

Ignored Cases

package_json_side_effects_array_keep_main_implicit_main

this is a hacky behavior of esbuild, https://github.com/evanw/esbuild/commit/a766bdff31634c6ba3c659055632588f41416ef5

package_json_side_effects_array_keep_module_implicit_main

this is a hacky behavior of esbuild, https://github.com/evanw/esbuild/commit/a766bdff31634c6ba3c659055632588f41416ef5

package_json_side_effects_array_keep_module_use_main

this is a hacky behavior of esbuild, https://github.com/evanw/esbuild/commit/a766bdff31634c6ba3c659055632588f41416ef5

remove_unused_no_side_effects_tagged_templates

https://github.com/javascript-compiler-hints/compiler-notations-spec/issues/8

tree_shaking_js_with_associated_css

CSS bundling is not supported (https://github.com/rolldown/rolldown/issues/4271)

tree_shaking_js_with_associated_css_export_star_side_effects_false

CSS bundling is not supported (https://github.com/rolldown/rolldown/issues/4271)

tree_shaking_js_with_associated_css_export_star_side_effects_false_only_js

CSS bundling is not supported (https://github.com/rolldown/rolldown/issues/4271)

tree_shaking_js_with_associated_css_re_export_side_effects_false

CSS bundling is not supported (https://github.com/rolldown/rolldown/issues/4271)

tree_shaking_js_with_associated_css_re_export_side_effects_false_only_js

CSS bundling is not supported (https://github.com/rolldown/rolldown/issues/4271)

tree_shaking_js_with_associated_css_unused_nested_import_side_effects_false

CSS bundling is not supported (https://github.com/rolldown/rolldown/issues/4271)

tree_shaking_js_with_associated_css_unused_nested_import_side_effects_false_only_js

CSS bundling is not supported (https://github.com/rolldown/rolldown/issues/4271)

Ignored Cases (not supported)

dead_code_inside_unused_cases

dce inside unused switch cases is not supported