Coder Social home page Coder Social logo

Comments (6)

Chris-Andrews avatar Chris-Andrews commented on May 16, 2024

Hi, is this something you recently implemented? I am noticing a

//# sourceMappingURL=data:application/json;base64,...

string in my livereactload-ed page. I especially wanted to ask about this because your example gulpfile has the line:

sourcemaps = require('gulp-sourcemaps'),

I thought that line was guiding me to set up my own sourcemaps with gulp-sourcemaps (gulp-sourcemaps is never actually used in the sample gulpfile). I spent a couple hours trying to get things working that way and kept getting messages that my sourcemaps were pointing to files that could not be found. I finally decided to give up and then noticed that the sourceMappingURL line was being put in there. I have no idea how this is happening, but I currently have excellent source maps working.

It might help other people avoid making this same mistake if the require('gulp-sourcemaps') statement is removed from that sample gulpfile.

Thanks for providing such a great tool!

from livereactload.

milankinen avatar milankinen commented on May 16, 2024

Hi Chris,

Yeah, I forgot that dependency there. It'll be removed in the next release. Thanks!

from livereactload.

Chris-Andrews avatar Chris-Andrews commented on May 16, 2024

Thanks for clarifying

from livereactload.

jakubwolny avatar jakubwolny commented on May 16, 2024

That would be awesome if livereactload could reload sourcemaps during hot reload! Do you think is that possible?

from livereactload.

milankinen avatar milankinen commented on May 16, 2024

Actually it should support source maps - if you enable source maps from e.g. babelify then you'll be able to debug errors from you ES6 code.

However, existing breakpoints are not working because LiveReactload reload the whole bundle script (breakpoints apply to "old" bundle file). If you have disabled cache then you may be able to get around this by using preventCache option (see https://github.com/milankinen/livereactload#configuration-options).

from livereactload.

milankinen avatar milankinen commented on May 16, 2024

Not applicative anymore since 2.x

from livereactload.

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.