An esbuild plugin that enables importing SASS/SCSS files directly in JavaScript bundles, with optional CSS modules support (class name hashing). Current stable version is 0.0.3, with low release cadence. Key differentiator: simple setup for SASS compilation within esbuild without external build tools, and optional CSS modules via separate plugin variant. No TypeScript types included.
npm install esbuild-plugin-sass-modulesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use esbuild-plugin-sass to compile SASS files during esbuild bundling.
Switch to esbuild-plugin-sass-modules if CSS modules are needed.
Run 'npm install sass' alongside esbuild-plugin-sass.
Rename entry point or use external tools to rename the output.
Install sass: npm install sass
Use const sassPlugin = require('esbuild-plugin-sass'); for CommonJS, or check import statement.