Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for more complex selectors for sideEffects #6074

Closed
@TheLarkInn

Description

@TheLarkInn

Do you want to request afeature or report abug?
Feature

What is the current behavior?
webpack searched for"sideEffects": false in package.json to perform the extra optimizations for esm modules. However iffalse is a string, the optimization isn't detected.

We should probably (in the case that package authors might mistake this as "false" vsfalse) put the wrong value in, and theres no simple way to detect (as a dev) why the 'deopt' occurs.
If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
"sideEffects": "false" in package.json works the same as"sideEffects": false

If this is a feature request, what is motivation or use case for changing the behavior?
Motivation described above.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
webpack 4.0.0-alpha

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp