Skip to content

Improve source map handling #699

@marvinhagemeister

Description

@marvinhagemeister

The source map handling in WMR can be a lot better. Namely:

  • Ensure --sourcemap generates sourcemaps Add groundwork for source map support #715
  • Merge source maps in container.transform()
  • Ensure acorn-traverse generates correct mappings
  • Always include sourcesContent, so that the original code is shown in browser devtools
  • Ensure npm plugin supports source maps (might need a rewrite) - out of scope for now. The rewrite will happen either way and we can do the source maps in one go
  • Add source map support to .sass (iirc they have different file mappings)
  • Decide on path format ./foo.js vs foo.js
  • Improve performance of source map generation (check if it can be made so fast, that we can turn this always on)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions