Skip to content

!__DEV__ always equals false  #8312

Closed
@BCGen

Description

@BCGen

Vue version

3.3.2

Link to minimal reproduction

5851eaa

Steps to reproduce

Create project with vue 3.3.2, and test invalid prop type check, no warning message in browser console.

What is expected?

In develop environment, process.env.NODE_ENV !== "production" should be true.

What is actually happening?

5851eaa

I found that this commit causes !__DEV__ to be transformed to !process.env.NODE_ENV !== "production", resulting in it always being false.

CleanShot 2023-05-15 at 03 39 37

CleanShot 2023-05-15 at 03 57 09

System Info

System:
    OS: macOS 13.3.1
    CPU: (12) arm64 Apple M2 Pro
    Memory: 554.94 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.volta/tools/image/node/18.16.0/bin/node
    npm: 9.5.1 - ~/.volta/tools/image/node/18.16.0/bin/npm
  Browsers:
    Edge: 113.0.1774.42
    Safari: 16.4
  npmPackages:
    vue: ^3.3.2 => 3.3.2

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions