esbuild-sass-plugin
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
274
0
12173
3
0
1
2