generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(unplugin-typia): add typia mjs path resolution
This commit introduces a new feature in the unplugin-typia package. It adds a function to resolve the path of the typia mjs file. This function reads the package.json of the typia package, resolves the directory of the package, and joins the directory with the module path specified in the package.json. The function is used to overwrite the source of any import declaration that imports from 'typia' with the resolved path. Note: This is a temporary solution until the issue oven-sh/bun#11783 is resolved.
- Loading branch information
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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