镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

loaders: globalPreload warning is incorrect #49026

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