Registry / devops / esbuild-plugin-sass

esbuild-plugin-sass

JSON →
library1.0.1jsnpmunverified

esbuild plugin for compiling Sass/SCSS files. v1.0.1 (no further updates since 2021). Integrates the node-sass or dart-sass compiler into esbuild's build pipeline. Supports custom Sass options (except file). Differentiates from alternatives like esbuild-sass-plugin by its minimal API and lack of active maintenance. Only peer dependency is esbuild >=0.11.14. Ships TypeScript types.

devops
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Package is ESM-only as of v1.0.1; require() will fail unless using dynamic import or a bundler that can handle ESM.

import sassPlugin from 'esbuild-plugin-sass'

Options is a TypeScript type, not a runtime export.

import type { Options } from 'esbuild-plugin-sass'

In CJS, the default export is accessed via .default due to ESM compatibility.

const sassPlugin = require('esbuild-plugin-sass').default

Shows how to integrate Sass compilation into an esbuild build script using the plugin.

import esbuild from 'esbuild'; import sassPlugin from 'esbuild-plugin-sass'; await esbuild.build({ entryPoints: ['src/index.js'], bundle: true, outfile: 'bundle.js', plugins: [sassPlugin()], }); // src/index.js: import './style.scss';
Debug
Known footguns
deprecatedPackage appears unmaintained since 2021; no updates for esbuild v0.12+ changes.
gotchaRequires esbuild >=0.11.14. Using an older version will fail.
gotchaDoes not support esbuild's loader option for CSS; generates separate CSS file (does not inline into JS).
gotchaAssumes sass (dart-sass) is installed; does not work with node-sass by default.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
11 hits · last 30 days
gptbot
4
ahrefsbot
3
claudebot
3
script
1
Resources