Skip to content
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

Resolve radash module & upgrade nuxt to the latest #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukasaric
Copy link

  • Use createResolver().resolve from @nuxt/kit so that the radash has properly resolved types
  • Upgrades Nuxt to the 3.7.3

- using resolver from nuxt kit fixes radash types
@lukasaric lukasaric mentioned this pull request Sep 24, 2023
@lukasaric
Copy link
Author

@bbg Please review when you find some time! 🙏 Thanks!

@@ -63,7 +65,7 @@ export default defineNuxtModule<ModuleOptions>({
const as = prefix
? prefix + (options.upperAfterPrefix ? radash.pascal(alias) : alias)
: alias;
addImports({ name, as, from: "radash" });
addImports({ name, as, from: resolve("./runtime/radash") });
Copy link
Author

@lukasaric lukasaric Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi, Tried to use findPath + resolve from nuxt/kit to directly resolve radash here, but it seems that it does not work. That's why I just exported everything through ./runtime/radash.ts file and resolved it on my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant