Skip to content

[Feat]: Inline rolldown:runtime for each chunk instead of share it #2654

@thesmartwon

Description

@thesmartwon

Reproduction link or steps

When using advancedChunks.groups the highest priority chunk will get the rolldown:runtime and others will import from it.

What is expected?

//#region rolldown:runtime
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
//#region rolldown:runtime
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);

What is actually happening?

//#region rolldown:runtime
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
import { __esmMin } from "./chunk-one.js";

System Info

Rolldown 0.14.0

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions