Coder Social home page Coder Social logo

Get source map from server about css HOT 6 OPEN

reworkcss avatar reworkcss commented on June 12, 2024
Get source map from server

from css.

Comments (6)

conradz avatar conradz commented on June 12, 2024

I don't think we can do this without majorly changing the API to make it async, since I don't know that there is any way to synchronously make HTTP requests. You could specify inputSourcemaps: false when stringifying and then manually process the source map object afterwards.

from css.

lydell avatar lydell commented on June 12, 2024

That’s why I don’t think that compilers should deal with previous source maps at all (not even like this module currently works). That’s the job of a separate tool. Every single compiler shouldn’t duplicate the same effort.

from css.

conradz avatar conradz commented on June 12, 2024

I'm starting to think that too, maybe we should just remove that in v3.0? It's really not hard to do at all (and rework itself could automatically do it, just not the css parser/stringifier).

from css.

lydell avatar lydell commented on June 12, 2024

Sounds like a good idea.

from css.

donaldpipowitch avatar donaldpipowitch commented on June 12, 2024

I thought from looking into source that it would be quite difficult to integrate async logic, too. I know that this is troublesome, but as the source map spec allows serving source maps in that way I kinda expected it to just work.

Creating a separate tool to solve this problem sounds nice. But I wonder... isn't that what https://github.com/mozilla/source-map already does? (Or should do?)

from css.

lydell avatar lydell commented on June 12, 2024

@donaldpipowitch See mozilla/source-map#84.

from css.

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.