mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +02:00
fix(v2): fix multi-instance mdx loaders not sandboxed correctly (#3970)
* another attempt to fix the multi-instance conflicts * try to fix windows build * cleanup + improve comment
This commit is contained in:
parent
9fdac1a0dc
commit
1e1860681b
4 changed files with 15 additions and 3 deletions
|
@ -414,6 +414,9 @@ export function addLeadingSlash(str: string): string {
|
|||
export function addTrailingSlash(str: string): string {
|
||||
return str.endsWith('/') ? str : `${str}/`;
|
||||
}
|
||||
export function addTrailingPathSeparator(str: string): string {
|
||||
return str.endsWith(path.sep) ? str : `${str}${path.sep}`;
|
||||
}
|
||||
|
||||
export function removeTrailingSlash(str: string): string {
|
||||
return removeSuffix(str, '/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue