-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
fix(kit,vite): ensure all modulesDir
paths are added to fs.allow
#31540
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
Conversation
|
WalkthroughThe pull request introduces several modifications across the codebase. In one area, the module installation logic has been adjusted to refine how the module root is determined. A new function call to resolve the package JSON file is now incorporated when necessary, which simplifies the determination of the installed module directory. In addition, the configuration for allowed file system directories has been revised by removing the modules directory from the resolved array. Meanwhile, within the bundler component, the modules directory configured in the options is now explicitly spread into the allowed directories array. Publicly exposed method signatures and export declarations remain unchanged. These adjustments focus on standardising and simplifying the logic for resolving module paths and directory configurations. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (5)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@nuxt/kit
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
CodSpeed Performance ReportMerging #31540 will not alter performanceComparing Summary
|
@danielroe Saw the GitHub actions bot mention this for 4.x release. Not really sure how that action works - does that mean it'll be released only in that one, or in a 3.x patch? Or both? Wondering if I need to temporarily switch to edge channel in my package.json, or if I could just wait a few days for the patch. TY! PS Thanks for the quick PR for this issue :) |
it'll come to the next v3 patch (this weekend) |
awesome work @danielroe |
🔗 Linked issue
resolves #31311
📚 Description
this bundles two changes:
node_modules/
(e.g. local modules)modulesDir
to fs.allow later on, which accounts for intervening changes (modules being pushed tomodulesDir
after the schema is initially resolved)