Skip to content

Conversation

@Timeless0911
Copy link
Contributor

@Timeless0911 Timeless0911 commented Nov 5, 2025

Summary

Runtime chunk name default to rslib-runtime in advanced esm to avoid name conflict.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 5, 2025 13:10
@netlify
Copy link

netlify bot commented Nov 5, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 54b8f00
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/690b4ccc2fb2220008b78592
😎 Deploy Preview https://deploy-preview-1320--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Timeless0911 Timeless0911 enabled auto-merge (squash) November 5, 2025 13:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the runtime chunk naming in experimental ESM output from the default 'single' to a custom name 'rslib-runtime'. This change provides a more descriptive and library-specific name for the runtime chunk file.

Key changes:

  • Modified the runtime chunk configuration to use an object with a custom name instead of the string 'single'
  • Updated test snapshots to reflect the new runtime filename from runtime.js to rslib-runtime.js

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/core/src/config.ts Changed runtimeChunk from 'single' to an object with name: 'rslib-runtime' for experimental ESM output
packages/core/tests/snapshots/config.test.ts.snap Updated snapshot to reflect the new runtime chunk configuration object
tests/integration/vue/index.test.ts Updated test expectations to reference rslib-runtime.js instead of runtime.js
tests/integration/style/css-modules-named/index.test.ts Updated test expectations to reference rslib-runtime.js instead of runtime.js
tests/integration/resolve/index.test.ts Updated test expectations to reference rslib-runtime.js instead of runtime.js

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Timeless0911 Timeless0911 merged commit 4a9344a into main Nov 5, 2025
23 checks passed
@Timeless0911 Timeless0911 deleted the rslib-runtime branch November 5, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants