Skip to content

[🐞] v2: Top-level performance.now() should be guarded by isBrowser or removed #8639

@briancarbone

Description

@briancarbone

Which component is affected?

Qwik Rollup / Vite plugin

Describe the bug

https://github.com/QwikDev/qwik/blob/build/v2/packages/qwik/src/core/preloader/constants.ts#L24

The code doesn't seem to be used anywhere, and it traps Wizer's analysis at compile time.

Reproduction

Attempt to compile a Qwik 2 template with Wizer

Steps to reproduce

This is encountered when AOT compiling a Qwik 2 project to WASM for a runtime like wasmtime.

System Info

System:
    OS: Linux 7.0 cpe:/o:nixos:nixos:26.05 26.05 (Yarara)
    CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor
    Memory: 51.71 GB / 62.71 GB
    Container: Yes
    Shell: 5.3.9 - /nix/store/4bwbk4an4bx7cb8xwffghvjjyfyl7m2i-bash-interactive-5.3p9/bin/bash
  Binaries:
    Node: 25.9.0 - /nix/store/qvw3cs7p2aipxsmyvwf9xr5ffvmwjkh1-nodejs-25.9.0/bin/node
    npm: 11.12.1 - /nix/store/qvw3cs7p2aipxsmyvwf9xr5ffvmwjkh1-nodejs-25.9.0/bin/npm
  npmPackages:
    typescript: 6.0.3 => 6.0.3
    vite: ^7.0.0 => 7.3.3

Additional Information

No response

Metadata

Metadata

Labels

bugSomething isn't workingneeds reproductionIssue lacks reproduction

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions