Skip to content

Commit 0d09d26

Browse files
authored
docs: enable experimental faster features in Docusaurus config (#414)
Switching to SWC from `babel` seems to fix the crashing API documentation issue related to apify/apify-docs#1686
1 parent a276714 commit 0d09d26

File tree

3 files changed

+43
-103
lines changed

3 files changed

+43
-103
lines changed

website/docusaurus.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ const packagesOrder = ['apify'];
99

1010
/** @type {Partial<import('@docusaurus/types').DocusaurusConfig>} */
1111
module.exports = {
12+
future: {
13+
experimental_faster: {
14+
swcJsLoader: true,
15+
swcJsMinimizer: true,
16+
swcHtmlMinimizer: true,
17+
lightningCssMinimizer: true,
18+
rspackBundler: true,
19+
mdxCrossCompilerCache: true,
20+
rspackPersistentCache: true,
21+
},
22+
v4: {
23+
removeLegacyPostBuildHeadAttribute: true,
24+
useCssCascadeLayers: false,
25+
},
26+
},
1227
title: 'SDK for JavaScript | Apify Documentation',
1328
url: absoluteUrl,
1429
baseUrl: '/sdk/js',

0 commit comments

Comments
 (0)