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: website/docs/api/docusaurus.config.js.mdx
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,7 +186,7 @@ It is also a way to opt-in for upcoming breaking changes coming in the next majo
186
186
187
187
Features prefixed by `experimental_` or `unstable_` are subject to changes in **minor versions**, and not considered as [Semantic Versioning breaking changes](/community/release-process).
188
188
189
-
Features prefixed by `v<MajorVersion>_` (`v6_``v7_`, etc.) are future flags that are expected to be turned on by default in the next major versions. These are less likely to change, but we keep the possibility to do so.
189
+
Features namespaced by `v<MajorVersion>` (`v6``v7`, etc.) are future flags that are expected to be turned on by default in the next major versions. These are less likely to change, but we keep the possibility to do so.
190
190
191
191
`future` API breaking changes should be easy to handle, and will be documented in minor/major version blog posts.
192
192
@@ -197,6 +197,9 @@ Example:
197
197
```js title="docusaurus.config.js"
198
198
exportdefault {
199
199
future: {
200
+
v4: {
201
+
removeLegacyPostBuildHeadAttribute:true,
202
+
},
200
203
experimental_faster: {
201
204
swcJsLoader:true,
202
205
swcJsMinimizer:true,
@@ -214,6 +217,8 @@ export default {
214
217
};
215
218
```
216
219
220
+
-`v4`: Permits to opt-in for upcoming Docusaurus v4 breaking changes and features, to prepare your site in advance for this new version. Use `true` as a shorthand to enable all the flags.
221
+
-[`removeLegacyPostBuildHeadAttribute`](https://github.com/facebook/docusaurus/pull/10435): Removes the legacy `plugin.postBuild({head})` API that prevents us from applying useful SSG optimizations ([explanations](https://github.com/facebook/docusaurus/pull/10850)).
217
222
-`experimental_faster`: An object containing feature flags to make the Docusaurus build faster. This requires adding the `@docusaurus/faster` package to your site's dependencies. Use `true` as a shorthand to enable all flags. Read more on the [Docusaurus Faster](https://github.com/facebook/docusaurus/issues/10556) issue. Available feature flags:
218
223
-[`swcJsLoader`](https://github.com/facebook/docusaurus/pull/10435): Use [SWC](https://swc.rs/) to transpile JS (instead of [Babel](https://babeljs.io/)).
219
224
-[`swcJsMinimizer`](https://github.com/facebook/docusaurus/pull/10441): Use [SWC](https://swc.rs/) to minify JS (instead of [Terser](https://github.com/terser/terser)).
0 commit comments