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
The output of development and release builds is identical except for the source maps and version number calculation.
72
+
The outputs of development and release builds are different in a few ways:
73
+
74
+
#### Source maps
71
75
72
76
- In a development build, source maps have absolute paths to source files to make debuggers happy.
73
77
- In a release build, source maps have relative paths to source files that share a common parent directory so that they look organized in the Thunderbird debugger.
74
78
79
+
#### Log output
80
+
81
+
- In a release build, `console.log()` are removed.
82
+
- In a development build, `console.log()` are left in place.
83
+
84
+
Other log levels like `console.info` are not removed in either case.
85
+
75
86
## Rollup plugins
76
87
77
88
The build script uses several custom plugins, each serving a different purpose:
@@ -87,6 +98,13 @@ The build script uses several custom plugins, each serving a different purpose:
87
98
1.[`tools/codecov.ts`](../tools/codecov.ts) uploads bundle size information to Codecov for analysis.
88
99
- This is only active during a release build and an API key is available.
89
100
101
+
### Built-in plugins
102
+
103
+
It also uses some functionality that come with `tsdown` or `rolldown`:
104
+
105
+
1. The `copy` option copies non-TypeScript files from `ext/` to `dist/ext/`.
106
+
2. The `replacePlugin` is used to modify logging.
107
+
90
108
### Version number calculation in `generate_manifest.ts`
91
109
92
110
The version number included in `manifest.json` is calculated in `generate_manifest.ts`.
0 commit comments