Skip to content

Commit

Permalink
#2 Add basic workaround for @site imports in framework code.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasBerger committed Jan 11, 2024
1 parent 8173fda commit 237a1a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/Caption/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ReactNode} from "react";
import React, {ReactNode} from "react";
import styles from "./styles.module.scss";

export interface Props {
Expand Down
8 changes: 8 additions & 0 deletions src/framework/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
// This is a basic IntelliJ workaround to prevent it from using @site imports, which apparently don't work when
// compiling docusaurus.config.ts. Unfortunately, this does not take effect in docusaurus.config.ts itself.
"paths": {}
}
}

0 comments on commit 237a1a1

Please sign in to comment.