esbuild-sass-plugin
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "esbuild-sass-plugin", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"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", |
@@ -130,10 +130,10 @@ import {Loader, OnLoadArgs, OnLoadResult, OnResolveArgs, Plugin} from "esbuild"; | ||
if (cached) { | ||
let {filename, mtimeMs, result} = cached; | ||
let {filename, type} = cached; | ||
let stats = statSync(filename); | ||
if (stats.mtimeMs <= mtimeMs) { | ||
if (stats.mtimeMs <= cached.mtimeMs) { | ||
return cached.result; | ||
} | ||
cached.result = await transform(filename, cached.type); | ||
cached.mtimeMs = mtimeMs; | ||
return result; | ||
cached.result = await transform(filename, type); | ||
cached.mtimeMs = stats.mtimeMs; | ||
return cached.result; | ||
} | ||
@@ -140,0 +140,0 @@ let filename = resolve(args); |
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
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
38874