refactor(core): prepare codebase for swappable bundler (#10497)

This commit is contained in:
Sébastien Lorber 2024-09-13 09:30:30 +02:00 committed by GitHub
parent 611842af91
commit 2495d059de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 430 additions and 121 deletions

View file

@ -21,6 +21,7 @@ import {sortRoutes} from '@docusaurus/core/src/server/plugins/routeConfig';
import {posixPath} from '@docusaurus/utils';
import {normalizePluginOptions} from '@docusaurus/utils-validation';
import {fromPartial} from '@total-typescript/shoehorn';
import pluginContentDocs from '../index';
import {toSidebarsProp} from '../props';
import {DefaultSidebarItemsGenerator} from '../sidebars/generator';
@ -288,8 +289,11 @@ describe('simple website', () => {
},
},
isServer: false,
utils: createConfigureWebpackUtils({
siteConfig: {webpack: {jsLoader: 'babel'}},
configureWebpackUtils: await createConfigureWebpackUtils({
siteConfig: {
webpack: {jsLoader: 'babel'},
future: {experimental_faster: fromPartial({})},
},
}),
content,
});