feat: css source map support
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- css, typescript
- Ambito
- build-system, developer-experience
Direzione di ricerca
Start by tracing the existing sourceMap option through the build and development pipelines, then inspect how CSS is passed to plugins such as @stencil/sass and through the minifyCss option. The issue proposes extending the option and carrying maps into runtime style tags, including style modes, but names no files or tests. Done means CSS maps work in build and development and can be used by browser developer tools.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Add native support for generating CSS source maps during the build and development processes.
Currently, Stencil supports JavaScript/TypeScript source maps, but lacks built-in generation for CSS source maps. This makes it difficult to trace compiled styles back to their original source files within the browser's developer tools.
Describe the Use Case
When developing large-scale design systems with Stencil, styles are often written using complex Sass/PostCSS setups or split across multiple utility files.
CSS source maps will allow developers to inspect an element and see the exact source file, improving the developer experience.
In addition coverage for CSS can be generated and mapped back to the responsible file.
Describe Preferred Solution
the current sourceMap option could be extended:
type SourceMapOption = boolean | {
css?: boolean,
js?: boolean,
}
This option must then be pass to plugins like @stencil/sass.
The internal minifier (minifyCss option) must also chain the source map.
to avoid any source map reference comment in the code which could interfere with normal source maps the output component could be extended:
const myComponentCss = () => ``;
const MyComponent = class {};
MyComponent.style = myComponentCss();
MyComponent.sourceMap = 'path to source map or inline source map';
the runtime can then inject both the style and sourceMap to the style tag.
to also support style modes the souceMap property can also be an object matching the name of the currently mounted style
Describe Alternatives
No response
Related Code
No response
Additional Information
No response
- Lingua principale
- TypeScript
- Stelle
- 13.2k
- Fork
- 870
- Merge medio
- 2g 54m
- PR unite (30g)
- 50
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stenciljs/core
-
bug: v5 dist/types/components.d.ts imports @stencil/core/runtime instead of ./stencil-public-runtimeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Stencil FOUC styles should use @layer to avoid cascade conflicts with React 19Forse già presa @johnjenkins l’ha presa 241 giorni fa. ApertaStencil v5
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
bug: v5 streamed SSR host is released too early when a script inserts a node while it is parsedAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
-
feat: write reflected attributes when the prop changes, not on the next renderForse già presa @johnjenkins l’ha presa 241 giorni fa. ApertaStencil v5
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di stenciljs/core
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
posit-dev/positron-sas-extension#196 ·
I maintainer di solito rispondono entro 1 giorno
-
bug composer
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
inmanta/web-console#8037 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: AlFajer Palestine FHDApertacheck:passed streams:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno