rcaferati / react-awesome-slider

React content transition slider. Awesome Slider is a 60fps, light weight, performant component that renders an animated set of production ready UI general purpose sliders with fullpage transition support for NextJS and GatsbyJS. 🖥️ 📱
https://fullpage.caferati.me
MIT License
2.92k stars 294 forks source link

Default and names CSS imports are deprecated #224

Open b1ek opened 1 year ago

b1ek commented 1 year ago

Vite now says its deprecated:

1:22:26 PM [vite] warning: 
node_modules/react-awesome-slider/src/styles.js
1  |  import styles from './core/styles.scss';
   |                      ^
2  |  
3  |  export default styles;
Default and named imports from CSS files are deprecated. Use the ?inline query instead. For example: import styles from './core/styles.scss?inline'
  Plugin: vite:import-analysis
  File: node_modules/react-awesome-slider/src/styles.js?inline

Perhaps it would make sense to change it?