Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

most source map paths are off by one #424

Open
@devoncarew

Description

@devoncarew

Here's my setup:

  • most dart code is in the lib/ folder
  • a single entry-point file is in web/ (web/entry.dart)
  • all DDC output written to web/ddc/
  • a DDC entry-point file is generated in web/entry_all.js which basically requires all the generated DDC sources in web/ddc/

Most of the generated source maps have incorrect paths.

web/ddc/entry.js.map has ../entry.dart for sources: (which is correct)

For package refs, web/ddc/logging/logging.js.map has ../../../logging/logging.dart. This is off-by-one; it should point to ../../../packages/logging/logging.dart.

For self-refs, web/ddc/atom_flutter/state.js.map points to ../../../atom_flutter/state.dart. It should probably point to ../../../lib/state.dart, or perhaps to ../../../packages/atom_flutter/state.dart.

I'm going to take a quick look through the source to see if the problem jumps out at me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions