Comments (6)
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.
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.
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.
Sounds like a good idea.
from css.
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.
@donaldpipowitch See mozilla/source-map#84.
from css.
Related Issues (20)
- @import rule parsing breaks if the argument of `url` contains a semi-colon (e.g. Nunito Google font)
- Files without css not included in sourcemaps
- Can't resolve 'fs' in '.\node_modules\css\lib\stringify' when building HOT 9
- AST Explorer is broken HOT 1
- Hi is there any type definitions for this library ?
- " and &apos are not recognized
- undefined:2:1230: property missing ':' when using background with Data URI HOT 5
- Parsing of URL fields
- Trying to get in touch regarding a security issue HOT 4
- Declaration parsing fails with this mess of quotes, brackets & braces HOT 1
- Duplicate packages detected in the css project on Tag: v3.0.0
- Comments in a string are lost
- Mycss HOT 2
- [email protected] dependency is deprecated HOT 12
- Typescript support, performance optimization and browser friendly version (no source-map) HOT 6
- @layer is not supported with css v3 HOT 1
- Fork to continue work: https://github.com/node-projects/css-parser HOT 1
- @container support
- property missing ':' when styles have url with quotes
- Security Vulnerability report HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from css.