Registry / devops / esbuild-postsass

esbuild-postsass

JSON →
library0.0.6jsnpmunverified

An esbuild plugin that combines SASS/SCSS compilation and PostCSS processing in one step. Current version is 0.0.6, with infrequent updates. It differentiates from standalone SASS and PostCSS setups by providing an esbuild-native plugin interface, avoiding separate build steps. Likely unstable due to early version and lack of tests.

npm install esbuild-postsass
INSTALL
IMPORT
SIG · ESBUILD-POSTSASS
E
esbuild-postsass
devopsjavascriptv0.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

postsass
import { postsass } from 'esbuild-postsass'
import postsass from 'esbuild-postsass'
Named export, not default. Requires destructuring.
type PostsassOptions
import type { PostsassOptions } from 'esbuild-postsass'
Type-only import for TypeScript users.
postsass plugin
require('esbuild-postsass').postsass
const postsass = require('esbuild-postsass')
Use .postsass to access the function in CommonJS.

Simple esbuild build with sass and postcss processing enabled via the plugin.

import esbuild from 'esbuild'; import { postsass } from 'esbuild-postsass'; await esbuild.build({ entryPoints: ['src/index.js'], bundle: true, outdir: 'dist', plugins: [ postsass() ] });
Debug
Known issues
deprecatedPlugin is at version 0.0.x, consider it unstable.
fix
Use only for experimentation or pin to exact version.
affects: >=0.0.0
gotchaMissing tests as per README TODO. Potential bugs.
fix
Test thoroughly in your project before production use.
affects: 0.0.6
gotchaRequires both sass and postcss as peer dependencies; not automatically installed.
fix
Install manually: npm i -D sass postcss
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'esbuild-postsass'
npm package not installed
fix
npm install esbuild-postsass --save-dev
TypeError: postsass is not a function
Incorrect import: default import instead of named
fix
Use import { postsass } from 'esbuild-postsass'
Upgrade
Version history
0.0.6latest on npm
Audit
Dependencies
sassoptionalPeer dependency for SASS compilation
postcssoptionalPeer dependency for PostCSS processing
Agent activity
7 hits · last 30 days
node
4
Bingbot
3
Resources
esbuild-postsass — npm install esbuild-postsass · libregistry