Skip to content

Commit

Permalink
2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
indooorsman committed Oct 8, 2022
1 parent 8816b08 commit ed1c80c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## V2.6.0
- `@parcel/css` now named `lightningcss`
- support pascal case by @FuriouZz [#43](https://github.com/indooorsman/esbuild-css-modules-plugin/pull/43)

## V2.5.0

- upgrade `@parcel/css` to `1.12.0`
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ declare interface PluginOptions {
module?: string;
version?: string;
};
usePascalCase?: boolean;
}

declare interface BuildContext {
Expand Down
4 changes: 2 additions & 2 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const {
validateNamedExport,
getPackageVersion
} = require('./utils.js');
const cssHandler = require('@parcel/css');
const cssHandler = require('lightningcss');
const camelCase = require('lodash/camelCase');
const upperFirst = require('lodash/upperFirst');
const BuildCache = require('./cache.js');
Expand All @@ -37,7 +37,7 @@ const buildCssModulesJs = async ({ fullPath, options, build }) => {
const cssModulesOption = options.v2CssModulesOption || {};

/**
* @type {import('@parcel/css').BundleOptions}
* @type {import('lightningcss').BundleOptions}
*/
const bundleConfig = {
filename: relative(fullPath), // use relative path to keep hash stable in different machines
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esbuild-css-modules-plugin",
"version": "2.5.2",
"version": "2.6.0",
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).",
"main": "./index.js",
"types": "./index.d.ts",
Expand Down Expand Up @@ -28,7 +28,7 @@
"esbuild": "^0.14.0 || ^0.15.0"
},
"dependencies": {
"@parcel/css": "^1.12.0",
"lightningcss": "^1.16.0",
"fs-extra": "^10.1.0",
"lodash": "^4.17.21",
"postcss": "^8.4.12",
Expand Down

0 comments on commit ed1c80c

Please sign in to comment.