Update vite.config.ts to follow setup-vp bundling style#114
Conversation
…ore chunk Follow @voidzero-dev/setup-vp bundling style by: - Using an array of pack configs to force self-contained bundles. - Setting alwaysBundle: [/.*/] to bundle all dependencies. - Preserving function and class names during minification. - Removing shared core-*.mjs chunks from dist. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR updates the Vite+ configuration to align with the bundling style used in @voidzero-dev/setup-vp.
Key changes:
packconfiguration invite.config.tsfrom a single object to an array of objects. This forcestsdownto generate separate, self-contained ESM bundles fordetect-env.mjs,run-scripts.mjs, andsetup.mjs, eliminating the sharedcore-*.mjschunk.alwaysBundle: [/.*/]for all entries to ensure all dependencies (like@actions/core) are bundled into the output files.minifyconfiguration to preserve function and class names. This is critical for compatibility with libraries that perform brand checks based on constructor names (e.g.,@actions/coreand@actions/cache).dist/directory no longer containscore-*.mjsand that the generated scripts remain functional viavp test.PR created automatically by Jules for task 243303797235888224 started by @torn4dom4n