Comments (2)
I'm pretty confident that this is because we merge media queries together at the file level as an optimisation. I've been able to create a minimal reproduction: https://codesandbox.io/s/icy-cloud-j40qh?file=/src/App.css.ts
My gut reaction is that this may be something we need to pull from vanilla-extract because it's clearly an unsafe optimisation. It'd be a shame to lose it, though, so we might need to think of a way to opt in/out somehow? Not sure.
from vanilla-extract.
We're actively looking to fix this. Still working through it, but we're hoping that we can still automatically merge media queries, but bail out of the optimisation if we detect that it will cause issues.
from vanilla-extract.
Related Issues (20)
- Conflicts with @sentry/vite-plugin in yarn workspaces when using Remix HOT 6
- issue with Typescript and Sprinkles HOT 1
- vanilla-extract/vite-plugin v4.0.4 does not work with custom TS paths/aliases in Astro HOT 6
- Errors running the Remix example on Windows OS HOT 3
- Windows css resolution HOT 2
- Empty layer definition duplicated HOT 2
- Broken link in documentation HOT 2
- Vite plugin fails to produce updated styles when run in watch mode HOT 7
- 4.x: Uncaught TypeError: e.constructor is not a function HOT 3
- Issue with selecting a child of a recipe HOT 2
- Cannot build a next app with Turbopack (Styles were unable to be assigned to a file) HOT 2
- Error 'No CSS for file' with vite watch mode HOT 9
- [VITE] Libraries shipping vanilla extract css loaded out of order when using vite HOT 1
- Next.js: Styles not loading after navigation with mixed pages/app HOT 3
- Error when updating Next.js to 14.2.2 version while using lodash-es in a @vanilla-extract/css file HOT 2
- Doesn't work since v4 HOT 2
- vite plugin fails to resolve files when full path starts with `/app` (remix, docker)
- 4.x breaks vite pre-rendering HOT 1
- Multline strings + webpack + storybook gives syntax error HOT 5
- @vanilla-extract/[email protected] hangs Vite build HOT 5
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 vanilla-extract.