Rollup/Vite plugin to run the sass-migrator tool on SASS files during development and build, primarily to eliminate deprecation warnings from the SASS compiler. Version 1.0.5 (stable) has a peer dependency on sass-migrator ^1. Designed to simplify automatic migration by integrating into the build pipeline, with special support for Quasar projects via a convenience function. Unlike manual migration, it automates migration on every build, ensuring existing warnings are resolved.
npm install rollup-plugin-sass-migratorVerified import paths — ran on the pinned version, not inferred.
Basic Vite plugin setup that runs sass-migrator on a specific index SASS file, with debug and dry run flags.
Install peer dependency: npm install -D sass-migrator or yarn add -D sass-migrator
Use import syntax or ensure your build tool handles CJS require of ESM packages (e.g., using a bundler like Rollup).
Pass either indexPath option to sassMigrator or use sassMigratorQuasar() for Quasar projects.
npm install -D sass-migrator
Use import { sassMigrator } from 'rollup-plugin-sass-migrator'