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

esbuild-css-modules-plugin

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-css-modules-plugin - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

14

index.js

@@ -84,2 +84,3 @@ const path = require('path');

setup(build) {
const tmpCsses = [];
const rootDir = process.cwd();

@@ -113,2 +114,3 @@ const tmpDirPath = tmp.dirSync().name;

await writeFile(tmpCss, cssContent);
tmpCsses.push(tmpCss);
jsContent =

@@ -181,9 +183,2 @@ `import "${tmpCss}";

);
if (tmpCss) {
setTimeout(() => {
try {
fs.unlinkSync(tmpCss);
} catch (e) {}
}, 1000);
}
return {

@@ -196,2 +191,7 @@ contents: args.pluginData.content,

});
build.onEnd(() => {
console.log('Clean temp files...')
tmpCsses.forEach(f => fs.unlinkSync(f));
});
}

@@ -198,0 +198,0 @@ };

{
"name": "esbuild-css-modules-plugin",
"version": "2.0.0",
"version": "2.0.1",
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).",

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

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