Uploaded image for project: 'Cristal'
  1. Cristal
  2. CRISTAL-577

Blocknote chunk is too large

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 0.19
    • Editor - Blocknote
    • Unknown

    Description

      Reproduction steps

      1. go to the web package and run pnpm run build
      2. observe the vite logs

      Expected

      chunks small than 500kb are produced

      Actual

      dist/assets/c-edit-blocknote-BSKeKuQo.js            1,104.03 kB │ gzip: 321.06 kB │ map: 6,661.75 kB
      

      Blocknote produces a very large 1Mo chunck

      PS: another way to reproduce is to observe the network tab and click on edit.
      Then observe the size of the c-edit-blocknote-*.js file from the debugger network tab.

      PPS: see attached the result of running pnpx vite-bundle-visualizer -o stats.html on the web package. stats.html

      In the screenshot below, blocknote is the rightmost first level rectangle.

      Attachments

        1. screenshot-1.png
          1.34 MB
          Manuel Leduc
        2. stats.html
          2.55 MB
          Manuel Leduc

        Activity

          People

            Unassigned Unassigned
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: