Current console.clear() on HMR clears runtime console.log(). A lot of my work still relies on runtime logs and the current console.clear() placement is preventing me from leveraging HMR.
You can install my demo project: https://github.com/enom-infini/parcel-hmr-console
git clone [email protected]:enom-infini/parcel-hmr-console.git
cd parcel-hmr-console
yarn && yarn dev
The console should read three lines:
Console was cleared.
runtime
timeout
The console reads only two lines:
Console was cleared.
timeout
Move placement of console.clear() in src/builtins/hmr-runtime.js
Attempting to use Parcel altogether. The console clearing is preventing me from using Parcel ^1.8 due to my current workflow.
See my GitHub repo: https://github.com/enom-infini/parcel-hmr-console
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | ^1.8
| Node | 9.7.1
| npm/Yarn | 1.5.1(Yarn)
| Operating System | Linux / Ubuntu (below)
> $ uname -a
Linux vm 4.13.0-38-generic #43-Ubuntu SMP Wed Mar 14 15:20:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
any idea of when this will be released?
Most helpful comment
any idea of when this will be released?