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.4 to 2.0.5

11

index.js

@@ -115,9 +115,9 @@ const path = require('path');

if (useV2) {
build.onLoad({ filter: /\.modules?\.css$/, namespace: 'file' }, async (args) => {
build.onLoad({ filter: /\.modules?\.css$/ }, async (args) => {
const fullPath = args.path;
outputLogs && console.log(`[css-modules-plugin] ${fullPath}`);
const tmpDir = tmp.dirSync().name;
const tmpCssFile = path.join(
tmp.dirSync().name,
fullPath.replace(/\.modules?\.css$/, '.modules_built.css')
tmpDir,
fullPath.replace(rootDir, '').replace(/\.modules?\.css$/, '.modules_built.css')
);

@@ -133,3 +133,4 @@ fse.ensureDirSync(path.dirname(tmpCssFile));

fs.writeFileSync(tmpCssFile, `${finalCss}`, { encoding: 'utf-8' });
outputLogs && console.log(`[css-modules-plugin] build css file`, tmpCssFile);
outputLogs &&
console.log(`[css-modules-plugin] build css file`, tmpCssFile.replace(tmpDir, ''));

@@ -136,0 +137,0 @@ const jsFileContent = `import "${tmpCssFile}";${jsContent}`;

{
"name": "esbuild-css-modules-plugin",
"version": "2.0.4",
"version": "2.0.5",
"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