mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 08:19:07 +02:00
feat(v2): Allow customization of js loader, replace babel by esbuild in Docusaurus website (#4766)
* feat(v2): Allow customization of js loader
* Change API
* use esbuild for Docusaurus website
* Enable isolatedModules: true
* Revert "Enable isolatedModules: true"
This reverts commit e656c350
Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
c8812cf3b5
commit
3548686f59
12 changed files with 113 additions and 11 deletions
3
packages/docusaurus-types/src/index.d.ts
vendored
3
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -63,6 +63,9 @@ export interface DocusaurusConfig {
|
|||
}
|
||||
)[];
|
||||
titleDelimiter?: string;
|
||||
webpack?: {
|
||||
jsLoader: 'babel' | ((isServer: boolean) => RuleSetRule);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue