You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not all styles are emitted on the first build. Once HMR hits, they correct themselves.
The problem exists for VueJS SFC files.
All files are imported with static ES imports.
Please look below, focus on the .skill-circle class. Notice that it's absent on the first build, but it exists after rebuild.
Another thing is .skill class. It exists on the first build despite not being present in the codebase.
On the first build:
I run version 2.6.0 of all @parcel/ packages. There's no .babelrc file in the project.
🤔 Expected Behavior
Parcel shouldn't lose styles
😯 Current Behavior
Parcel loses some styles upon the first build
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
Software
Version(s)
Parcel
2.6.0
Node
v17.0.1
npm/Yarn
npm 8.1.0
Operating System
Linux (5.13.19-2-MANJARO)
The text was updated successfully, but these errors were encountered:
michaelKurowski
changed the title
Styles on first build and styles upon HMR rebuild are not the same
Styles on the first build and styles upon HMR rebuild are not the same
May 28, 2022
michaelKurowski
changed the title
Styles on the first build and styles upon HMR rebuild are not the same
Styles on the first build and styles upon HMR rebuild are not the same (VueJS, SFC) 2.6.0
May 28, 2022
I did solve the issue, apperently CSS file was cached in the Chrome browser, although it means that the cache header for CSS haf to be set wrongly at some point by the rollup.
🐛 bug report
Not all styles are emitted on the first build. Once HMR hits, they correct themselves.
The problem exists for VueJS SFC files.
All files are imported with static ES imports.
Please look below, focus on the
.skill-circle
class. Notice that it's absent on the first build, but it exists after rebuild.Another thing is
.skill
class. It exists on the first build despite not being present in the codebase.On the first build:
After HMR
This is how the file that has these styles looks like in the sourcecode:
🎛 Configuration (.babelrc, package.json, cli command)
Command
npm start
I run version 2.6.0 of all
@parcel/
packages. There's no .babelrc file in the project.🤔 Expected Behavior
Parcel shouldn't lose styles
😯 Current Behavior
Parcel loses some styles upon the first build
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: