Skip to content

Lack of source maps #219

Closed
Closed

Description

@luchopcerra

Resources:
Before submitting an issue, please consult our docs.

Stencil version: (run npm list @stencil/core from a terminal/cmd prompt and paste output below):

@stencil/[email protected]
└── @stencil/[email protected]

I'm submitting a ... (check one with "x")
[ ] bug report
[X] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com

Current behavior:

After running npm start, components are compiled and serve by the devServer, but there are no source map files.

Expected behavior:

for debugging purpose it would be very helpfull to have source map, to map JS code to TS code

Other information:

I have opened a thead in slack asking for this feature
--> https://stencil-worldwide.slack.com/archives/C79EANFL7/p1506398086000124

Activity

  1. changed the title [-]Lack of source map files at devServer[/-] [+]Lack of source maps[/+] on Oct 9, 2017
  2. jgw96 commented on Oct 9, 2017

    @jgw96
    Contributor

    Hello! We are planning to add source maps soon once we have Stencil itself more stable and feature complete.

  3. luchopcerra commented on Oct 9, 2017

    @luchopcerra
    Author

    thanks! thats great news.

  4. iano123 commented on Nov 27, 2017

    @iano123

    +1

  5. michaelchu28 commented on Dec 11, 2017

    @michaelchu28

    yes.. important feature for debugging purpose.

    How do others debug Stencil app? Just wondering. I am writing console.log which is taking a lot of effort.

    Does chrome debugger extension work for any one? I could not get that to work.

  6. adamdbradley commented on Feb 14, 2018

    @adamdbradley
    Contributor

    Since this issue, JS output is simply es2015 which makes it easy to understand how typescript transpiled it. We'll look to add source maps in the future, but for now going to close to keep issues organized, thanks.

  7. iano123 commented on Feb 14, 2018

    @iano123

    It depends if you use jsx or not no?

  8. iano123 commented on Feb 15, 2018

    @iano123

    Do not quite understand why an unresolved issue is closed. Wonder how many of those are in the code base.

  9. bitjson commented on Jun 14, 2018

    @bitjson

    @adamdbradley has there been any further progress on this front?

    Not having source map support makes it impossible to do debugging using editor integrations, so development requires jumping back and forth between Dev Tools and (in my case) VS Code.

    I think it's probably worth re-opening this issue now?

  10. reicharm commented on Jun 26, 2018

    @reicharm

    Same for me!

  11. apillard commented on Jul 24, 2018

    @apillard

    Why is this closed? This issue has not been addressed.

    After minification reading component source in the debugger is still difficult, even though the typescript to es2015 step may be easy to understand.

  12. arjunyel commented on Jul 31, 2018

    @arjunyel
    Contributor
  13. Alonski commented on Mar 22, 2019

    @Alonski

    Can this be reopened? Would be really useful.

  14. liron-navon commented on Apr 29, 2019

    @liron-navon

    This is 2019 , 2 years after this issue was opened and still no source maps??? why???

  15. gino8080 commented on May 6, 2019

    @gino8080

    it's a big missing for a great piece of software like Stencil!

    please add Sourcemaps

  16. kraftwer1 commented on Jun 13, 2019

    @kraftwer1
    Contributor

    @manucorporat as of Stencil One, I think source maps are substantial...

  17. ToothpickFactory commented on Sep 12, 2019

    @ToothpickFactory

    It's September 2019, any news on this front?

  18. arjunyel commented on Sep 12, 2019

    @arjunyel
    Contributor
  19. MrGrigri commented on Jun 17, 2021

    @MrGrigri

    So, It's June 2021 and still no sourcemaps?

  20. johnjenkins commented on Jun 17, 2021

    @johnjenkins
    Contributor

    hey @MrGrigri - checkout my PR ^
    The stencil team is undergoing a transition period atm, but I'm pretty confident it'll get merged eventually.
    In the meantime, if you need sourcemaps, I've built out my branches into a convenient package that you can swap in / out anytime you want

  21. splitinfinities commented on Oct 12, 2021

    @splitinfinities
    Contributor
  22. MrGrigri commented on Oct 12, 2021

    @MrGrigri

    @splitinfinities this is awesome news!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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