Giter VIP home page Giter VIP logo

Comments (8)

wegry avatar wegry commented on July 19, 2024 2

@michaelfaith if you're willing to just kick the can down the road a bit:

// prettier-ignore
@forward 'src/list' as list-*;

This prettier playground shows it in action with latest.

from postcss-values-parser.

shellscape avatar shellscape commented on July 19, 2024 1

Thanks. This package isn't a sass parser. If it's not in the css spec, were unlikely to support it.

from postcss-values-parser.

shellscape avatar shellscape commented on July 19, 2024

Have a link to the spec for that one by chance?

from postcss-values-parser.

wegry avatar wegry commented on July 19, 2024

@shellscape https://github.com/sass/sass-spec/blob/master/spec/directives/forward/member/as.hrx might help? It’s test cases for the reference implementation.

from postcss-values-parser.

michaelfaith avatar michaelfaith commented on July 19, 2024

@wegry is this issue being resolved? This is causing a big problem for us. Is there a way to turn this off?

from postcss-values-parser.

wegry avatar wegry commented on July 19, 2024

@michaelfaith I've been out of this stack since I created this (Angular 11), but I vaguely recall that we had issues with the underlying parser elsewhere.

What sort of issue are you having and what versions of the associated libraries are you using?

from postcss-values-parser.

michaelfaith avatar michaelfaith commented on July 19, 2024

@wegry yeah I followed the trail over from the Prettier issue you referenced: prettier/prettier#7019
Where it's messing up @forward statements, separating the * out.
e.g.

// Before: 
@forward 'src/list' as list-*;

// After: 
@forward 'src/list' as list- *;

Dealing with this in Angular 12 and Prettier 2.4.0 which appears to use 2.0.1 of this library.

from postcss-values-parser.

michaelfaith avatar michaelfaith commented on July 19, 2024

@wegry right on. I can go with that until there's a fix in, which i guess will need to come in the form of a new sass parser on the Prettier side. Appreciate the recommendation.

from postcss-values-parser.

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.