esbuild-css-modules-plugin
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -107,3 +107,3 @@ const path = require('path'); | ||
const tmpDirPath = tmp.dirSync().name; | ||
const { outdir, bundle, logLevel } = build.initialOptions; | ||
const { outdir, bundle, logLevel, watch } = build.initialOptions; | ||
const { v2 } = options; | ||
@@ -141,4 +141,3 @@ | ||
return Promise.resolve({ | ||
contents: jsFileContent, | ||
watchFiles: [fullPath] | ||
contents: jsFileContent | ||
}); | ||
@@ -148,2 +147,5 @@ }); | ||
build.onEnd(() => { | ||
if (watch) { | ||
return; | ||
} | ||
outputLogs && console.log('[css-modules-plugin] clean temp files...'); | ||
@@ -150,0 +152,0 @@ tmpFiles.forEach((f) => { |
{ | ||
"name": "esbuild-css-modules-plugin", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
21325
287