fix(theme): use import type for plugin type imports#1290
Closed
sserrata wants to merge 1 commit into
Closed
Conversation
Use `import type` syntax for all type imports from the plugin package. This ensures type imports are erased at compile time and prevents webpack from attempting to process TypeScript source files. - Convert all type imports to use `import type` syntax - Keep runtime import (sampleFromSchema) from lib/ directory
|
Size Change: 0 B Total Size: 2.17 MB ℹ️ View Unchanged
|
|
Visit the preview URL for this PR (updated for commit 08b7fa8): https://docusaurus-openapi-36b86--pr1290-dmriovlm.web.app (expires Thu, 26 Feb 2026 15:47:17 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: bf293780ee827f578864d92193b8c2866acd459f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use
import typesyntax for all type imports from the plugin package. This ensures type imports are erased at compile time and prevents webpack from attempting to process TypeScript source files.import typesyntax