Skip to content

Remove DeprecationWarning during buildΒ #431

@lukeed

Description

@lukeed

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

While running preact build, you will always get this deprecation warning:

DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.

If the current behavior is a bug, please provide the steps to reproduce.

$ preact create default my-foobar --no-install
$ cd my-foobar && yarn
$ yarn build

What is the expected behavior?

There shouldn't be any deprecation message. Eventually, this will move from a soft-warning to a hard error.


Pretty certain that this line is the culprit. πŸ‘“

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions