-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for @site/...
imports in docusaurus.config.ts
/ builder
#2
Labels
tech
Technical improvement
Comments
SilasBerger
changed the title
Add support for
Add support for Jan 3, 2024
@site/...
imports in docusaurus.config.ts / builder@site/...
imports in docusaurus.config.ts
/ builder
SilasBerger
added a commit
that referenced
this issue
Jan 11, 2024
What we know so far
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@site/...
imports work fine in React components and in.mdx
files (thanks tointellij.config.js
workaround for IntelliJ MDX plugin). However, they do not work in thedocusaurus.config.ts
and the wholebuilder
part.The
@docusaurus/tsconfig
file defines the@site
path alias as follows:It seems like that file doesn't apply to
docusaurus.config.ts
: Imports such as@site/src/builder/logger
indocusaurus.config.ts
are accepted (and even suggested) by the IDE, but duringyarn run build
, they yield the following error:Also note that the custom
tsconfig.json
file in the project root only applies for the IDE and is not used during compilation.The text was updated successfully, but these errors were encountered: