Skip to content

loaders: globalPreload warning is incorrect #49026

@cjihrig

Description

@cjihrig

Version

main

Platform

all

Subsystem

esm

What steps will reproduce the bug?

Use the globalPreload hook.

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

globalPreload is being removed. The error message should reflect that correctly.

What do you see instead?

(node:9201) ExperimentalWarning: `globalPreload` will be removed in a future version. Please use `initialize` instead. is an experimental feature and might change at any time

This arguably should not be an experimental warning, because it is about something being removed. The text of the warning is definitely incorrect though.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions