@ttsc/strip 0.8.0-dev.20260505 → 0.8.0-dev.20260506
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/package.json +1 -1
- package/src/index.cjs +0 -3
package/README.md
CHANGED
|
@@ -28,10 +28,10 @@ Open your project's `tsconfig.json`, then add this entry under `compilerOptions.
|
|
|
28
28
|
{
|
|
29
29
|
"transform": "@ttsc/strip",
|
|
30
30
|
"calls": ["console.log", "console.debug", "assert.*"],
|
|
31
|
-
"statements": ["debugger"]
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
31
|
+
"statements": ["debugger"],
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
35
|
}
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -54,15 +54,15 @@ Call patterns match statement-level calls such as `console.log("debug")` or `ass
|
|
|
54
54
|
// Keep lint first.
|
|
55
55
|
{ "transform": "@ttsc/lint", "config": { "no-var": "error" } },
|
|
56
56
|
|
|
57
|
-
// First-party utilities use their documented
|
|
57
|
+
// First-party utilities use their documented transform order.
|
|
58
58
|
{ "transform": "@ttsc/banner", "banner": "License MIT" },
|
|
59
59
|
{ "transform": "@ttsc/paths" },
|
|
60
60
|
{
|
|
61
61
|
"transform": "@ttsc/strip",
|
|
62
62
|
"calls": ["console.log", "console.debug", "assert.*"],
|
|
63
|
-
"statements": ["debugger"]
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
}
|
|
63
|
+
"statements": ["debugger"],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
67
|
}
|
|
68
68
|
```
|
package/package.json
CHANGED