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 1.8.0 to 1.8.1

4

lib/index.d.ts
import { OnLoadResult, OnResolveArgs } from "esbuild";
import { Importer, types } from "sass";
import { Importer, Value } from "sass";
export declare type Type = "css" | "style" | "css-text" | "lit-css";

@@ -17,3 +17,3 @@ export declare type SassPluginOptions = {

functions?: {
[key: string]: (...args: types.SassType[]) => types.SassType | void;
[key: string]: (...args: Value[]) => Value | void;
};

@@ -20,0 +20,0 @@ includePaths?: string[];

{
"name": "esbuild-sass-plugin",
"version": "1.8.0",
"version": "1.8.1",
"description": "esbuild plugin for sass/scss files supporting both css loader and css result import (lit-element)",

@@ -20,3 +20,3 @@ "main": "lib/index.js",

"author": "Gianluca Romeo <glromeo@gmail.com> (https://github.com/glromeo/esbuild-sass-plugin)",
"license": "ISC",
"license": "MIT",
"bugs": {

@@ -56,12 +56,12 @@ "url": "https://github.com/glromeo/esbuild-sass-plugin/issues"

"dependencies": {
"esbuild": "^0.14.1",
"esbuild": "^0.14.5",
"picomatch": "^2.3.0",
"resolve": "^1.20.0",
"sass": "^1.44.0"
"sass": "^1.45.0"
},
"devDependencies": {
"@types/chai": "^4.2.22",
"@types/chai": "^4.3.0",
"@types/chai-string": "^1.4.2",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.11",
"@types/node": "^16.11.13",
"@types/resolve": "^1.20.1",

@@ -72,9 +72,10 @@ "@types/sass": "^1.43.1",

"mocha": "^9.1.3",
"node-sass": "^7.0.0",
"nyc": "^15.1.0",
"postcss": "^8.4.4",
"postcss": "^8.4.5",
"postcss-modules": "^4.2.2",
"postcss-url": "^10.1.3",
"ts-node": "^10.4.0",
"typescript": "^4.5.2"
"typescript": "^4.5.4"
}
}

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

```
initial build: 2.033s
incremental build: 1.199s (one ts modified)
incremental build: 512.429ms (same ts modified again)
incremental build: 448.871ms (one scss modified)
incremental build: 448.92ms (same scss modified)
initial build: 3.266s
incremental build: 890.663ms (one ts modified)
incremental build: 932.9ms (same ts modified again)
incremental build: 873.24ms (one scss modified)
incremental build: 837.774ms (same scss modified)
```
#### cache: false
```
initial build: 1.961s
incremental build: 1.986s (touch 1 ts)
incremental build: 1.336s (touch 1 ts)
incremental build: 1.069s (touch 1 scss)
incremental build: 1.061s (touch 1 scss)
initial build: 3.237s
incremental build: 1.904s
incremental build: 1.863s
incremental build: 1.959s
incremental build: 1.885s
```
#### node-sass
#### node-sass & cache: true
```
initial build: 1.030s
incremental build: 468.677ms (one ts modified)
incremental build: 347.55ms (same ts modified again)
incremental build: 401.264ms (one scss modified)
incremental build: 364.649ms (same scss modified)
initial build: 1.893s
incremental build: 789.792ms
incremental build: 765.563ms
incremental build: 813.937ms
incremental build: 762.243ms
```

@@ -307,0 +307,0 @@

import {OnLoadResult, OnResolveArgs} from "esbuild";
import {Importer, types} from "sass";
import {Importer, Value} from "sass";

@@ -67,3 +67,3 @@ export type Type = "css" | "style" | "css-text" | "lit-css"

*/
functions?: { [key: string]: (...args: types.SassType[]) => types.SassType | void };
functions?: { [key: string]: (...args: Value[]) => Value | void };

@@ -70,0 +70,0 @@ /**

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