Subscribe on changes!

!__DEV__ always equals false

avatar
May 14th 2023

Vue version

3.3.2

Link to minimal reproduction

https://github.com/vuejs/core/commit/5851eaa9339364d41860a277a99f2352de2a3834

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?

https://github.com/vuejs/core/commit/5851eaa9339364d41860a277a99f2352de2a3834

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