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
Describe the bug
When updating from 3.9.5 to 3.9.6, global styles are broken.
Here is my svelte.config.js file :
const{ scss, globalStyle }=require('svelte-preprocess')module.exports=(production)=>({// enable run-time checks when not in productiondev: !production,// we'll extract any component CSS out into// a separate file - better for performancecss: css=>{css.write('public/build/bundle.css')},preprocess: [scss({includePaths: ['./src/styles','./node_modules']}),globalStyle()]})
I have [email protected] and [email protected] installed. Updating scss config to include implementation: require('sass') does not fix the issue.
When checking the bundle.css file, all the global style is missing, while it exists in the bundle.map.css file 🤔
Here is a dedicated branch on my project where I am trying to update svelte-preprocess. It may be a bug from @use imports as the style from App.scss is present in the bundle. The details I have written in the commit :
When updating, the style is completely broken. Seems like @use is not supported ? The SCSS code in App.scss is packed in bundle.css (main and @media main rules are present) but all the code from styles/main.scss and styles/_aposto-theme.scss is not (for example .typography--button-inline from main is missing). Even when moving Material imports from main.scss to App.scss, the Material styles are still missing in the bundle.
When removing the aposto-theme and main import (@use) in App.scss, the precompilation fails due to missing $top-app-bar-height-breakpoint definition from aposto-theme. So it seems that the precompilation is looking through these files (and the $top-app-bar-height-breakpoint value is indeed present in the bundle when importing aposto-theme).
Describe the bug
When updating from 3.9.5 to 3.9.6, global styles are broken.
Here is my svelte.config.js file :
I have
[email protected]
and[email protected]
installed. Updatingscss
config to includeimplementation: require('sass')
does not fix the issue.When checking the bundle.css file, all the global style is missing, while it exists in the bundle.map.css file 🤔
My global styles just concern the following :
In my Svelte component :
In App.scss file :
Not only all the Material style is missing but the
main
rule too.Expected behavior
Having a working global style 😬
Information about your project:
Your browser and the version: Firefox 77.0.1, Brave 1.9.76
Your operating system: OS X 10.15.5
svelte-preprocess
version: 3.9.6 (the bug is not present in 3.9.5)Whether your project uses Webpack or Rollup: Rollup
The text was updated successfully, but these errors were encountered: