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
Copy file name to clipboardExpand all lines: docs/browser-support.mdx
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
---
2
2
id: browser-support
3
+
title: Browser Support
3
4
description: Learn how CodeHarborHub manages browser compatibility while keeping bundle size small
4
5
sidebar_label: Browser Support
5
6
keywords:
@@ -9,13 +10,10 @@ keywords:
9
10
- bundle size
10
11
---
11
12
12
-
# Browser Support
13
+
CodeHarborHub uses the **[Browserslist](https://github.com/browserslist/browserslist)** configuration to define which browsers are supported during builds.
13
14
14
-
CodeHarborHub uses the **[Browserslist](https://github.com/browserslist/browserslist)** configuration to define which browsers are supported during builds.
15
15
This ensures a balance between **backward compatibility** and **optimized bundle size**.
16
16
17
-
<AdsComponent />
18
-
19
17
## Purpose {#purpose}
20
18
21
19
Older browsers often lack support for modern JavaScript syntax and APIs.
@@ -42,8 +40,6 @@ const value =
42
40
43
41
This keeps the code running everywhere—but also makes the bundle larger.
44
42
45
-
<AdsComponent />
46
-
47
43
## Default Configuration {#default-configuration}
48
44
49
45
The default CodeHarborHub template includes the following **browserslist** field in `package.json`:
@@ -113,21 +109,17 @@ Examples:
113
109
* `>1%` – Only browsers with more than 1% market share.
114
110
* `last 2 versions` – Support the last two major versions of each browser.
115
111
116
-
<AdsComponent />
117
-
118
112
## Best Practices {#best-practices}
119
113
120
114
* Keep production targets **inclusive but reasonable** to avoid large polyfills.
121
115
* Regularly check usage statistics for your audience (e.g., via [Can I Use](https://caniuse.com/)).
122
116
* Test your site on the most critical browsers after changing the config.
123
117
* Avoid supporting obsolete browsers like IE11 unless absolutely necessary.
0 commit comments