You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 483d73b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(javascript): keep what fuzzing modules, classes and bundles found the minifier changed
- Parenthesize a named function or class expression after `export default`,
and one a member, call or tag after it starts.
- Keep a sloppy function out of a class or other strict code where it reads
`this`, `arguments` or `with`, deletes, or writes a property or an
undeclared name.
- Keep an object `hoist_props` would split whole where it is read bare.
- Read `NaN` and `Infinity` in a catch clause whose parameter is a pattern,
where the minifier threw.
Claude-Session: https://claude.ai/code/session_011CuRTB8fAv8PE7di49qDL4
* @property {((call: Node, reference: Node, value: Node) => boolean) | null} inlinesIntoPureArgument whether a value read once may replace its read in a call terser holds pure, which it otherwise keeps out
29314
29430
* @property {((reference: Node, definition: SymbolDefinition, compressor: CompressorShape) => boolean) | null} inlinesIntoCallee whether a function read once, in another scope, is inlined where its value is only called
29315
29431
* @property {((call: Node, lambda: Node, index: number, compressor: CompressorShape) => boolean) | null} aliasesParameter whether a parameter of a function flattened into its call, its name taken around the call, reads the argument's variable instead
29432
+
* @property {((lambda: Node, compressor: CompressorShape) => boolean) | null} keepsSloppyLambda whether a sloppy function read once stays where strict code would run it
Copy file name to clipboardExpand all lines: test/helpers/oxcSmaller.js
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,13 @@
8
8
9
9
/** @type {[string, string[]][]} */
10
10
constOXC_SMALLER_BY_REASON=[
11
+
[
12
+
"webpack keeps a sloppy function out of a class or other strict code where it reads `this`, `arguments` or `with`, deletes, or writes a property or an undeclared name, which would run otherwise as strict",
Copy file name to clipboardExpand all lines: test/helpers/swcSmaller.js
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,13 @@
8
8
9
9
/** @type {[string, string[]][]} */
10
10
constSWC_SMALLER_BY_REASON=[
11
+
[
12
+
"webpack keeps a sloppy function out of a class or other strict code where it reads `this`, `arguments` or `with`, deletes, or writes a property or an undeclared name, which would run otherwise as strict",
"swc drops what nothing reads or what has no effect: unused variables and destructuring, side-effect-free `new Map()` and pure calls, an empty constructor",
0 commit comments