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.7.0 to 2.7.1

3

changelog.md

@@ -0,1 +1,4 @@

## V2.7.1
- support esbuild@^0.17
## V2.7.0

@@ -2,0 +5,0 @@ - fix inject logic to avoid styles missing in some micro-frontend framework

@@ -73,2 +73,4 @@ import type { OnLoadResult, Plugin, PluginBuild } from 'esbuild';

usePascalCase?: boolean;
/** since esbuild@0.17 has removed the `watch` option, you have to set it here explicitly */
watch?: boolean;
}

@@ -75,0 +77,0 @@

7

lib/plugin.js

@@ -192,6 +192,3 @@ const path = require('path');

if (initialOptions.watch) {
log('watching', rpath);
result.watchFiles = [absPath];
}
result.watchFiles = [absPath];

@@ -218,3 +215,3 @@ return result;

const useCache = build.initialOptions.watch;
const useCache = build.initialOptions.watch ?? options.watch ?? false;

@@ -221,0 +218,0 @@ useCache && log(`checking cache for`, rpath);

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

@@ -14,3 +14,3 @@ "main": "./index.js",

"engines": {
"node": ">= 14"
"node": ">= 16"
},

@@ -26,3 +26,3 @@ "author": "indooorsman@gmail.com",

"@types/node": "^17.0.23",
"esbuild": "^0.16.2"
"esbuild": "^0.17.3"
},

@@ -33,6 +33,6 @@ "peerDependencies": {

"dependencies": {
"lightningcss": "^1.17.1",
"lightningcss": "^1.18.0",
"fs-extra": "^10.1.0",
"lodash": "^4.17.21",
"postcss": "^8.4.19",
"postcss": "^8.4.21",
"postcss-modules": "^6.0.0",

@@ -39,0 +39,0 @@ "tmp": "^0.2.1"

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