Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

refactor: getOptions should return an {} by default  #84

@michael-ciniawsky

Description

@michael-ciniawsky

Currently if no loader options are set, getOptions(this) returns null by default, which requires a fallback to avoid breaking further options.x references within the loader.

const options = loaderUtils.getOptions(this)

Is that intended for some reason or would it be possible to return an empty {}by default instead ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions