Skip to content

Commit ed1c80c

Browse files
committed
2.6.0
1 parent 8816b08 commit ed1c80c

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## V2.6.0
2+
- `@parcel/css` now named `lightningcss`
3+
- support pascal case by @FuriouZz [#43](https://github.com/indooorsman/esbuild-css-modules-plugin/pull/43)
4+
15
## V2.5.0
26

37
- upgrade `@parcel/css` to `1.12.0`

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ declare interface PluginOptions {
6868
module?: string;
6969
version?: string;
7070
};
71+
usePascalCase?: boolean;
7172
}
7273

7374
declare interface BuildContext {

lib/plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const {
1616
validateNamedExport,
1717
getPackageVersion
1818
} = require('./utils.js');
19-
const cssHandler = require('@parcel/css');
19+
const cssHandler = require('lightningcss');
2020
const camelCase = require('lodash/camelCase');
2121
const upperFirst = require('lodash/upperFirst');
2222
const BuildCache = require('./cache.js');
@@ -37,7 +37,7 @@ const buildCssModulesJs = async ({ fullPath, options, build }) => {
3737
const cssModulesOption = options.v2CssModulesOption || {};
3838

3939
/**
40-
* @type {import('@parcel/css').BundleOptions}
40+
* @type {import('lightningcss').BundleOptions}
4141
*/
4242
const bundleConfig = {
4343
filename: relative(fullPath), // use relative path to keep hash stable in different machines

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "esbuild-css-modules-plugin",
3-
"version": "2.5.2",
3+
"version": "2.6.0",
44
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).",
55
"main": "./index.js",
66
"types": "./index.d.ts",
@@ -28,7 +28,7 @@
2828
"esbuild": "^0.14.0 || ^0.15.0"
2929
},
3030
"dependencies": {
31-
"@parcel/css": "^1.12.0",
31+
"lightningcss": "^1.16.0",
3232
"fs-extra": "^10.1.0",
3333
"lodash": "^4.17.21",
3434
"postcss": "^8.4.12",

0 commit comments

Comments
 (0)