Skip to content

Question on default value of options.context #5671

@situ2001

Description

@situ2001

As https://rollupjs.org/configuration-options/#context shown that the default value of options.context is "undefined", however, in Rolldown, the default value of options.context is currently an empty string (""), and it uses void 0 actually to replace the top-level context, leading to a discrepancy in default values ("void 0" vs."undefined" vs. "").

context: raw_options.context.unwrap_or_default(),

Should we align Rolldown with Rollup by setting the default value of options.context to "void 0" (in Rollup, default value is "undefined") to ensure consistency?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions