contentstack / json-rte-serializer

The JSON RTE Serializer package helps you convert the data inside your JSON Rich Text Editor field from JSON to HTML format and vice versa.
MIT License
9 stars 7 forks source link

jsonToHtml makes Vite build --watch stuck #23

Open marcoborsoi opened 1 year ago

marcoborsoi commented 1 year ago

Using jsonToHtml makes vite build --watch stuck

Reproduction

https://stackblitz.com/edit/vitejs-vite-jxfzwy?file=src/index.ts

Steps to reproduce

  1. npm run dev
  2. Modify the string inside console.log and save
  3. Uncomment the code containing jsonToHtml and save
  4. Modify the string inside console.log again and save

Packages versions

@contentstack/json-rte-serializer:  2.0.2
typescript: 4.9.3
vite: 4.2.1
marcoborsoi commented 1 year ago

According to a @vitejs core team member, It looks like a regression from https://github.com/vitejs/vite/pull/11919

A PR was created to address the issue: https://github.com/vitejs/vite/pull/12797

Jayesh2812 commented 2 weeks ago

Hey @marcoborsoi, I checked the project link shared, the build does get stuck, but upgrading to the latest version solves the issue.