File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
packages/tailwindcss-language-server/src/language Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,6 @@ function replaceWithStyleRule(delta = 0) {
29
29
* errors for things that aren't actually errors.
30
30
*/
31
31
export function rewriteCss ( css : string ) {
32
- // Remove inline `@layer` directives
33
- // TODO: This should be unnecessary once we have updated the bundled CSS
34
- // language service
35
- css = css . replace ( / @ l a y e r \s + [ ^ ; { ] + ( ; | $ ) / g, '' )
36
-
37
32
css = css . replace ( / @ s c r e e n ( \s + [ ^ { ] + ) { / g, replaceWithAtRule ( - 2 ) )
38
33
css = css . replace ( / @ v a r i a n t s ( \s + [ ^ { ] + ) { / g, replaceWithAtRule ( ) )
39
34
css = css . replace ( / @ r e s p o n s i v e ( \s * ) { / g, replaceWithAtRule ( ) )
@@ -47,7 +42,6 @@ export function rewriteCss(css: string) {
47
42
48
43
css = css . replace ( / @ ( c u s t o m - v a r i a n t ) ( \s + [ ^ { ] + ) { / g, replaceWithStyleRule ( ) )
49
44
css = css . replace ( / @ ( v a r i a n t ) ( \s + [ ^ { ] + ) { / g, replaceWithStyleRule ( ) )
50
- css = css . replace ( / @ l a y e r ( \s + [ ^ { ] { 2 , } ) { / g, replaceWithAtRule ( - 3 ) )
51
45
css = css . replace ( / @ r e f e r e n c e \s * ( [ ^ ; ] { 2 , } ) / g, '@import $1' )
52
46
53
47
css = css . replace (
You can’t perform that action at this time.
0 commit comments