Sass plugin for esbuild
Install the package using
$ npm i essass
or
$ yarn add essass
Import the package to esbuild bundle.js and use as plugin
let sassEs = require("essass");
require("esbuild")
.build({
// ...
plugins: [sassEs],
// ...
})
.catch(() => process.exit(1));
Simply add Sass files using import
import "./style.scss";
// ...