Skip to content

Commit

Permalink
pluginContentDocsWrapper webpack cache fix (#73)
Browse files Browse the repository at this point in the history
* pluginContentDocsWrapper webpack cache fix

* tsconfig clarification

* switch comment style
  • Loading branch information
tukib authored Dec 11, 2023
1 parent f2a29cf commit 4094b44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import pluginContentDocsWrapper from "./src/plugins/pluginContentDocsWrapper";
import pluginContentDocsWrapper from "./src/plugins/pluginContentDocsWrapper.ts";

const GITHUB_ORG = "comcode-org";
const GITHUB_PROJECT = "hackmud_wiki";
Expand Down
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@docusaurus/tsconfig/tsconfig.json",
"compilerOptions": {
"baseUrl": "."
"baseUrl": ".",
// Fixes local lint error when importing JS files into TS modules (docusaurus already allows this.)
"allowJs": true,
// Allows including an explicit file extension in an import, in case it is being inferred incorrectly.
// - Use this when webpack is warning about a caching error.
"allowImportingTsExtensions": true
}
}

0 comments on commit 4094b44

Please sign in to comment.