Skip to content

Svmigrate deletes styles and replaces with /*$$__STYLE_CONTENT__$$*/ #14712

@justingolden21

Description

@justingolden21

Describe the bug

Deleted all my styles and output /*$$__STYLE_CONTENT__$$*/

image

Reproduction

I ran npx sv migrate svelte-5

I had a file with an "error" due to having a <tr> inside a <table>.

I understand and are technically correct, but

  1. This shouldn't break the entire file and migration script.
  2. Nearly all browsers will insert the tbody anyway / figure out how to render the table. I've been developing websites for a decade and it's never shown up as much as an a11y warning on lighthouse, let alone an actual a11y problem or fail for browser engine to render.
  3. This should be a configuration setting.

I understand something more important like not having a button within a button, but for a tr inside a table, this is ridiculous.

I've got a svelte 4 project that is quite large, and I'm not doing anything wacky or hacky or legacy, and it's taking me hours to sift through all this and fix all the the hundreds of lines that svmigrate deleted.

I appreciate the devs hard at work on svmigrate; it's well beyond my paygrade here and (hopefully in the future) saves devs a lot of time and headache.

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz
    Memory: 20.06 GB / 31.87 GB
  Binaries:
    Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.14.1 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.4355

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions