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.3.1 to 2.3.2

6

lib/plugin.js

@@ -90,4 +90,8 @@ const path = require('path');

const js = `${importStatement}\n${exportStatement};`;
const namedExportStatements = Object.entries(cssModulesJSON).map(
([camelCaseClassName, className]) => `export const ${camelCaseClassName} = "${className}";`
).join('\n');
const js = `${importStatement}\n${exportStatement};\n${namedExportStatements}`;
return {

@@ -94,0 +98,0 @@ js,

2

package.json
{
"name": "esbuild-css-modules-plugin",
"version": "2.3.1",
"version": "2.3.2",
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).",

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

@@ -61,3 +61,3 @@ # esbuild-css-modules-plugin

v2CssModulesOption: { // Optional.
dashedIndents: boolean; // Optional. refer to: https://github.com/parcel-bundler/parcel-css/releases/tag/v1.9.0
dashedIndents: false, // Optional. refer to: https://github.com/parcel-bundler/parcel-css/releases/tag/v1.9.0
/**

@@ -69,3 +69,3 @@ * Optional. The currently supported segments are:

*/
pattern: string;
pattern: `custom-prefix_[local]_[hash]`
}

@@ -72,0 +72,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