Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed May 14, 2022
1 parent d79e8f9 commit 91952c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ ${Object.entries(registry)
JSON.stringify(routesChunkNames, null, 2),
);

const genRoutes = generate(generatedFilesDir, 'routes.js', routesConfig);
const genRoutes = generate(generatedFilesDir, 'routes.mjs', routesConfig);

const genGlobalData = generate(
generatedFilesDir,
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/src/webpack/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export async function createBaseConfig(
fileLoaderUtils.rules.svg(),
fileLoaderUtils.rules.otherAssets(),
{
test: /\.[jt]sx?$/i,
test: /\.[mc]?[jt]sx?$/i,
exclude: excludeJS,
use: [
getCustomizableJSLoader(siteConfig.webpack?.jsLoader)({
Expand Down

0 comments on commit 91952c1

Please sign in to comment.