swc/crates/swc_ecma_minifier/tests/fixture/issues
CPunisher f81fa6e063
fix(es/minifier): Fix case matching (#9208)
**Description:**

Caused by https://github.com/swc-project/swc/pull/7112
Since swc minifier evaluates expressions in a separate pass, I make a temporary patch here.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9176
2024-07-11 14:29:51 +00:00
..
2011 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
2028 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2044 feat(es/minifier): Inline more IIFE arguments (#8584) 2024-02-02 09:42:15 +09:00
2072/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2078/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2214/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2257/full test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
2262/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2319/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2558 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
2605/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2614/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2679 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2779 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2807/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2923/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
2926/1 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
3126/1 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
3173/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
3256 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
3629/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
3709 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
3710 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
4234 fix(es/minifier): Bailout regex optimization on invalid flags (#7020) 2023-03-07 11:05:04 +09:00
4249 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
4386 fix(es/minifier): Make AST compressor respect toplevel (#6775) 2023-01-11 07:04:20 +00:00
4412 fix(es/codegen): Remove extra spaces in AssignPatProp and KeyValuePatProp (#7488) 2023-06-07 05:08:35 +00:00
4515 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
4841/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
4845 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
5280 feat(es/minifier): Merge assignments using sequential inliner (#6103) 2022-10-12 05:31:40 +00:00
5306/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
5343 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
5588 fix(es/minifier): Preserve classes with side effects in static fields (#6480) 2022-11-24 09:43:00 +00:00
5680 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
5682 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
5684 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
5693 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
5846 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
5864 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
5865 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
5910/1 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
5955 feat(es/minifier): Improve fn-local analysis for better inlining (#5955) 2022-09-29 14:16:28 +09:00
6049/1 refactor(es/ast): Improve type definitions of patterns (#8532) 2024-02-05 15:32:52 +09:00
6141 fix(es/minifier): Preserve return values of recursive IIFE (#6142) 2022-10-14 09:32:56 +09:00
6146 fix(es/minifier): Preserve this of tagged template literals (#6165) 2022-10-15 09:11:20 +00:00
6175/1 fix(es/minifier): Preserve this in more cases (#6226) 2022-10-21 09:07:00 +00:00
6192 feat(es/minifier): Drop unused import bindings (#6967) 2023-02-21 06:22:25 +00:00
6279 fix(es/minifier): Don't inline regex for IIFEs (#6283) 2022-10-29 00:02:32 +00:00
6344 fix(es/minifier): Change the default of mangle.toplevel to false (#6439) 2022-11-15 02:28:38 +00:00
6407/1 fix(es/minifier): Preserve op of the op-assignments in seq inliner (#6428) 2022-11-15 00:22:06 +00:00
6422 fix(es/minifier): Mark all function params as potential property mutation (#7409) 2023-05-18 01:19:17 +00:00
6463 fix(es/minifier): Abort inliner on fn declarations used multiple time (#6473) 2022-11-18 07:53:13 +00:00
6492 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
6508 test(es/minifier): Add tests for preserving top-level directives (#6545) 2022-11-30 05:46:48 +00:00
6509 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
6628 fix(es/minifier): Fix typescript enum detection (#9031) 2024-06-11 14:59:42 +09:00
6636 fix(es/minifier): Abort sequential inliner on optional chaining (#6637) 2022-12-14 04:45:47 +00:00
6730 feat(es/minifier): Improve compatibility of arrows with terser (#6862) 2023-01-27 14:36:12 +09:00
6751/1 fix(es/minifier): Don't inline conditionally initialized vars (#6751) 2023-01-11 06:01:56 +00:00
6791/1 fix(es/transform): Apply hygiene and resolver if minify is specified (#6793) 2023-01-12 07:29:28 +00:00
6837 refactor(es/minifier): Respect toplevel and module options (#7671) 2023-07-20 11:35:08 +09:00
6864 fix(es/minifier): Track reassign in parent scope (#6865) 2023-01-28 17:19:19 +00:00
6957 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
7004 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
7009 fix(es/minifier): Don't create invalid property names (#7010) 2023-03-04 17:58:49 +09:00
7045 fix(es/minifier): Preserve delete of unresolved variables (#7072) 2023-03-15 02:31:08 +00:00
7111 fix(es/ast): Fix EqIgnoreSpan impl of Number (#7112) 2023-03-21 08:46:22 +00:00
7194/1 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
7228/1 fix(es/minifier): Don't inline properties if the var is not fn-local (#7839) 2023-08-22 11:04:15 +09:00
7241 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
7287/1 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
7331 fix(es/minifier): Fix remapping of vars upon inlining (#7362) 2023-05-10 03:31:15 +00:00
7402 fix(es/minifier): Fix top-level check (#8583) 2024-02-02 01:45:41 +00:00
7412 fix(es/minifier): Prevent inlining vars assigned outside current function scope (#7414) 2023-05-19 13:35:50 +09:00
7457/1 fix(es/minifier): Don't generate generator arrows (#7466) 2023-05-31 01:57:13 +00:00
7472/1 feat(es/minifier): Drop unused properties (#7534) 2023-07-04 05:11:33 +00:00
7500 fix(es/minifier): Infect mutation when assigning a property (#7503) 2023-06-08 04:13:42 +00:00
7568 fix(es/minifier): Don't drop assignments to unused top-level variables (#7581) 2023-06-27 15:24:06 +00:00
7575/1 feat(es/minifier): Inline constants even if they are exported (#7583) 2023-06-27 02:14:09 +00:00
7591 fix(es/minifier): Add usage to inlined ident eagerly (#7597) 2023-07-04 06:23:49 +00:00
7634 fix(es/minifier): Handle synthesized export default expression (#7707) 2023-07-31 04:10:18 +00:00
7641/1 feat(es/minifier): Drop recursively used var declaration (#7649) 2023-07-15 05:54:34 +09:00
7678 fix(es/codegen): Don't strip necessary escape characters (#7687) 2023-08-07 22:17:59 +00:00
7683 fix(es/resolver): Correctly resolve global value (#7893) 2023-08-31 05:54:18 +00:00
7697/1 fix(es/minifier): Abort seq inliner using visitor (#7699) 2023-07-25 03:30:33 +00:00
7714/1 fix(es/utils): Fix string evaluation of array literals (#7731) 2023-07-31 03:31:37 +00:00
7739/1 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
7742/1 fix(es/minifier): Abort on Array.slice with start >= end (#7745) 2023-08-07 20:36:15 +00:00
7749 fix(es/minifier): Abort seq inliner if a same var is defined in outer scope (#7772) 2023-08-09 20:01:59 +00:00
7754 feat(es/minifier): Support mangle.eval (#7777) 2023-08-09 20:42:12 +00:00
7770 fix(es/minifier): Preserve cooked while compressing template literals (#7773) 2023-08-17 04:35:07 +00:00
7783/1 fix(es/minifier): Do not drop properties used via this (#7785) 2023-08-10 02:48:35 +00:00
7784 fix(es/minifier): Abort seq inliner if var is not fn_local or reassigned (#7804) 2023-08-17 05:15:59 +00:00
7821 fix(es/minifier): Preserve more analysis data upon inlining (#7823) 2023-08-17 18:09:02 +00:00
7839/1 fix(es/minifier): Don't inline properties if the var is not fn-local (#7839) 2023-08-22 11:04:15 +09:00
7847 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
7969 fix(es/minifier): Do not inline into a template literal with sequential inliner (#7971) 2023-09-20 06:57:03 +00:00
7984 fix(es/minifier): Check if object shorthand is skippable for seq inliner (#8036) 2023-09-30 11:40:46 +00:00
8119 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
8136 feat(es/minifier): Drop empty static blocks (#8152) 2023-10-19 21:06:12 +00:00
8161 fix(es/minifier): Always consider reassigned when inlining (#8168) 2023-10-23 21:23:29 +00:00
8173 fix(es/minifier): Enable seq inliner for const declarations (#8255) 2023-11-13 03:47:49 +00:00
8228 fix(es/minifier): Use cooked while converting tpls into strings (#8248) 2023-11-09 11:59:42 +00:00
8271 fix(es/minifier): Keep class with a static block (#8283) 2023-11-15 00:59:14 +09:00
8284 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
8324 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
8337 fix(es/minifier): Give up terminate merge if in try with finally (#8342) 2023-11-25 02:43:18 +00:00
8398 fix(es/fixer): Preserve parenthesis for optional chaining (#8399) 2023-12-11 03:05:58 +00:00
8465 fix(es/resolver): Resolve top-level undefined, NaN, and Infinity correctly (#8471) 2024-01-04 04:24:14 +00:00
8567 fix(es/minifier): Fix undefined judgement (#9146) 2024-07-05 07:05:43 +00:00
8622 fix(es/minifier): Don't invoke IIFE containing reserved words (#8939) 2024-05-09 06:54:25 +00:00
8626 feat(es/minifier): Remove unused parameters of arrow functions (#8636) 2024-02-14 02:09:11 +00:00
8643 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
8670 fix(es/minifier): Fix removal of array pattern bindings (#8730) 2024-03-12 06:24:36 +00:00
8692 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
8704 fix(es/minifier): Abort eval on valueOf or toString (#8763) 2024-03-20 02:35:24 +00:00
8705 fix(es/minifier): Abort eval on valueOf or toString (#8763) 2024-03-20 02:35:24 +00:00
8706 fix(es/minifier): Fix evaluation of array literals with void 0 (#8733) 2024-03-12 14:58:52 +09:00
8714 fix(es/minifier): Handle cyclic references while dropping unused properties (#8725) 2024-03-11 07:59:22 +00:00
8715 fix(es/minifier): Do not evaluate slice calls with negative index (#8726) 2024-03-11 06:52:57 +00:00
8717 fix(es/minifier): Fix eval of toString of array with holes (#8727) 2024-03-11 04:56:31 +00:00
8737 fix(es/minifier): Make Finalizer handle hoisted_props correctly (#8738) 2024-03-13 02:21:15 +00:00
8806 feat(es/minifier): Evaluate spread of arrays (#8811) 2024-04-04 06:56:29 +00:00
8813 fix(es/minifier): Handle switch cases (#8854) 2024-04-13 02:11:32 +00:00
8826 fix(es/minifier): Abort IIFE invoker in function parameters (#8828) 2024-04-09 15:22:38 +09:00
8841 fix(es/minifier): Abort seq inline on recursive usage (#8887) 2024-04-23 12:34:14 +00:00
8844 fix(es/utils): Preserve optional chain effect (#8850) 2024-04-12 08:33:01 +00:00
8880/1 fix(es/minifier): Increment ref_count while invoking IIFE (#8904) 2024-04-30 09:11:23 +09:00
8886 fix(es/minifier): Do not add vars if eval exists (#8888) 2024-04-27 13:44:25 +09:00
8923 fix(es/minifier): Consider side effects of operands of binary expressions (#8929) 2024-05-07 05:27:08 +00:00
8924 fix(es/minifier): Abort seq inliner on ** (#8947) 2024-05-13 01:11:46 +00:00
8974 fix(es/minifier): Mark usage in TaggedTpl as ref (#8975) 2024-05-24 05:11:00 +00:00
9007 fix(es/minifier): Fix comparison of -0.0 (#9012) 2024-06-02 03:10:55 +00:00
9030 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
9176 fix(es/minifier): Fix case matching (#9208) 2024-07-11 14:29:51 +00:00
buble/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
d3-color/1 feat(es/minifier): Swap bin expr to save paren (#8277) 2023-11-14 16:45:24 +00:00
d3-time-format test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
emotion/react test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
export/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
firebase test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
firebase-core/1 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
firebase-firestore/1 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
issue-2604/1 feat(es/minifier): Implement correct hoist_props (#8593) 2024-02-07 03:25:27 +00:00
lit_comparisons test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
moment/1 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
murmur2/1 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
quagga2/1.4.2/1 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
react test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
react-autosuggest test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
react-autowhatever test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
react-countup test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
react-instancesearch test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
regexp/1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
stylis test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
typescript/1 test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
vercel test(es/minfiier): Improve comment testing (#9164) 2024-07-06 22:53:57 +09:00
.gitignore refactor(es/minifier): Make rust-analyzer fast, really (#4746) 2022-05-23 16:16:05 +09:00
config.json refactor(es/minifier): Make rust-analyzer fast, really (#4746) 2022-05-23 16:16:05 +09:00