Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Mar 29, 2022
1 parent 45e5dcd commit 339078f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export {
DEFAULT_PLUGIN_ID,
WEBPACK_URL_LOADER_LIMIT,
} from './constants';
export {generate, genChunkName, readOutputHTMLFile} from './emitUtils';
export {generate, readOutputHTMLFile} from './emitUtils';
export {
getFileCommitDate,
FileNotTrackedError,
Expand Down
3 changes: 0 additions & 3 deletions packages/docusaurus/src/client/flat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ const isTree = (x: Chunk): x is Tree =>
* ```
*/
export default function flat(target: ChunkNames): {[keyPath: string]: string} {
if (!isTree(target)) {
return target;
}
const delimiter = '.';
const output: {[keyPath: string]: string} = {};

Expand Down
7 changes: 2 additions & 5 deletions packages/docusaurus/src/server/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,7 @@ const isModule = (value: unknown): value is Module =>
// eslint-disable-next-line no-underscore-dangle
!!(value as {[key: string]: unknown})?.__import);

/**
* Takes a module and returns the string path it represents.
*
* @see {Module}
*/
/** Takes a {@link Module} and returns the string path it represents. */
function getModulePath(target: Module): string {
if (typeof target === 'string') {
return target;
Expand Down Expand Up @@ -301,6 +297,7 @@ export async function loadRoutes(
): Promise<LoadedRoutes> {
handleDuplicateRoutes(routeConfigs, onDuplicateRoutes);
const res: LoadedRoutes = {
// To be written
routesConfig: '',
routesChunkNames: {},
registry: {},
Expand Down

0 comments on commit 339078f

Please sign in to comment.