@samitouri / QOS-React-1 / commits / ba661c80f3

Remove comments in builds

Lauren Tan committed Apr 2, 2024 at 10:32 UTC ba661c80f3716eaaf8845b480a9d4558d0fb7e4a
3 files changed +5 -2
compiler/packages/babel-plugin-react-forget/tsconfig.json
+1
@@ -20,6 +20,7 @@
20 // ideally turn off only during dev, or on a per-file basis
21 "noUnusedLocals": false,
22 "composite": true,
23 + "removeComments": true
24 },
25 "exclude": [
26 "node_modules",
compiler/packages/eslint-plugin-react-compiler/tsconfig.json
+2 -1
@@ -18,7 +18,8 @@
18 "target": "ES2015",
19 // ideally turn off only during dev, or on a per-file basis
20 "noUnusedLocals": false,
21 - "sourceMap": false
21 + "sourceMap": false,
22 + "removeComments": true
23 },
24 "exclude": ["node_modules", "./src/types/*"],
25 "include": ["src/**/*.ts"]
compiler/packages/react-forget-runtime/tsconfig.json
+2 -1
@@ -14,7 +14,8 @@
14 "target": "ES2015",
15 // ideally turn off only during dev, or on a per-file basis
16 "noUnusedLocals": false,
17 - "sourceMap": true
17 + "sourceMap": true,
18 + "removeComments": true
19 },
20 "exclude": ["node_modules"],
21 "include": ["src/**/*.ts"]