esbuild-css-modules-plugin
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -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, |
{ | ||
"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 @@ }) |
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
34440
879