Skip to content

Sourcemaps offset #286

Closed
sveltejs/svelte
#5754
@maxdewald

Description

@maxdewald

Describe the bug
In my current project and in the example repo below the sourcemaps are offset by a few lines.
This seems to be related to the style tag:
image

To Reproduce

Expected behavior
Correctly linked sourcemaps. Otherwise debugging issues becomes quite hard.

Information about your project:

  • Your browser and the version: (Chrome 87)

  • Your operating system: (Windows 10)

  • Rollup & svelte-preprocess are updated to the newest versions (see repo package.json)

  • All other packages used are also on the newest version

I hope this is the correct place for this issue. Help and suggestions where that problem exactly comes from are appreciated.

Edit: Even without scss preprocessing this issue still persists. Adjusted example repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions