Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-sass-plugin

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-sass-plugin - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json
{
"name": "esbuild-sass-plugin",
"version": "2.0.1",
"version": "2.0.2",
"description": "esbuild plugin for sass/scss files supporting both css loader and css result import (lit-element)",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -113,9 +113,14 @@ ![cooltext394785080075403](https://user-images.githubusercontent.com/160981/136289874-26ce7269-ea08-47dd-be31-9bf0ef7a0b8d.png)

### pnpm
### What happened to `exclude` ?
the option has been removed in favour of using `filter`. The default filter is quite simple but also quite permissive.
If you have URLs in your imports and you want the plugin to ignore them you can just change the filter to something like:
```javascript
sassPlugin({
filter: /^(?!https?:).*\.(s[ac]ss|css)$/
...
})
```
There's a working example of using `pnpm` with `@material` design
in [issue/38](https://github.com/glromeo/esbuild-sass-plugin/tree/main/test/issues/38)
### `importMapper`
### ImportMapper Option
A function to customize/re-map the import path, both `import` statements in JavaScript/TypeScript code and `@import`

@@ -151,4 +156,5 @@ in Sass/SCSS are covered.

### Precompile
#### `url(...)` rewrite
### `precompile`
#### - Rewriting relative `url(...)`s
If your sass reference resources with relative urls (see [#48](https://github.com/glromeo/esbuild-sass-plugin/issues/48))

@@ -171,3 +177,3 @@ esbuild will struggle to rewrite those urls because it doesn't have idea of the imports that the Sass compiler

```
#### Globals and other Shims (like sass-loader's additionalData)
#### - Globals and other Shims (like sass-loader's additionalData)
Look for a complete example in the [precompile](https://github.com/glromeo/esbuild-sass-plugin/tree/main/test/fixture/precompile) fixture

@@ -191,3 +197,3 @@

### Transform
### `transform`

@@ -201,3 +207,3 @@ ```typescript

#### PostCSS
#### - PostCSS

@@ -223,3 +229,3 @@ The simplest use case is to invoke PostCSS like this:

#### CSS Modules
#### - CSS Modules

@@ -253,3 +259,7 @@ A helper function is available to do all the work of calling PostCSS to create a CSS module. The usage is something

### pnpm
There's a working example of using `pnpm` with `@material` design
in [issue/38](https://github.com/glromeo/esbuild-sass-plugin/tree/main/test/issues/38)
### Benchmarks

@@ -269,3 +279,3 @@

[travis-url]: https://travis-ci.com/glromeo/esbuild-sass-plugin
[travis-image]: https://travis-ci.com/glromeo/esbuild-sass-plugin.svg?branch=main
[travis-url]: https://app.travis-ci.com/glromeo/esbuild-sass-plugin
[travis-image]: https://app.travis-ci.com/glromeo/esbuild-sass-plugin.svg?branch=main

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc