Skip to content

Conversation

harlan-zw
Copy link
Collaborator

πŸ”— Linked issue

#485

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Add forceDownload option for development workflows where the latest version of scripts should always be downloaded, bypassing cache.

  • Add forceDownload option to NuxtUseScriptOptions type with comprehensive documentation
  • Update AssetBundlerTransformerOptions to include defaultForceDownload configuration
  • Modify downloadScript function to skip cache when forceDownload is true
  • Add logic to extract forceDownload option from script configuration
  • Pass defaultForceDownload from module configuration to transformer
  • Includes performance warnings about build time impact

Add forceDownload option for development workflows where the latest version of scripts should always be downloaded, bypassing cache.

- Add forceDownload option to NuxtUseScriptOptions type with comprehensive documentation
- Update AssetBundlerTransformerOptions to include defaultForceDownload configuration
- Modify downloadScript function to skip cache when forceDownload is true
- Add logic to extract forceDownload option from script configuration
- Pass defaultForceDownload from module configuration to transformer
- Includes performance warnings about build time impact

Resolves #485

πŸ€– Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Copy link

vercel bot commented Sep 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
scripts-docs Error Error Sep 18, 2025 0:03am
scripts-playground Ready Ready Preview Comment Sep 18, 2025 0:03am

Copy link

pkg-pr-new bot commented Sep 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/nuxt/scripts/@nuxt/scripts@497

commit: 9759e4f

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