Code Monkey home page Code Monkey logo

Comments (5)

OsamaAbbas avatar OsamaAbbas commented on June 10, 2024 1

I found the old comment with some details on how to implement source maps (from 2020).

from bytenode.

gpetrov avatar gpetrov commented on June 10, 2024

I' also very curious if this is possible @OsamaAbbas - it will be of a great help for debugging issues, specially with sentry indeed.

from bytenode.

OsamaAbbas avatar OsamaAbbas commented on June 10, 2024

I' also very curious if this is possible @OsamaAbbas - it will be of a great help for debugging issues, specially with sentry indeed.

The first comment of this issue is clear that the error comes from vite:bytecode plugin (not bytenode). In this page (from their website), it's mentioned that their implementation is only "inspired" by bytenode with some differences. So, maybe you should open an issue in their repository as well.

That being said, I remember that I could implement source map generation previously (two years ago or so). I don't remember how exactly I did it though!

It was probably something like this: we know that the dummy code is just a string or a series of empty characters, with no \n. So, the idea was to correctly minimize the code (before compiling) to make it one long line. We then generate the source map, then we compile the code. I don't remember if this was the exact order of the process. Also, I don't remember how, during running the .jsc file, we would indicate where is the corresponding source map for the .jsc file.

from bytenode.

jjeff avatar jjeff commented on June 10, 2024

Source maps would be very cool! Though we should certainly default to disabling them… and explaining to people clearly why they might want to keep them disabled.

from bytenode.

jjeff avatar jjeff commented on June 10, 2024

Source maps would be very cool! Though we should certainly default to disabling them… and explaining to people clearly why they might want to keep them disabled.

from bytenode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.