mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 13:37:05 +02:00
refactor(core): prepare codebase for swappable bundler (#10497)
This commit is contained in:
parent
611842af91
commit
2495d059de
24 changed files with 430 additions and 121 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue