@better-css-modules/esbuild 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -4
- package/package.json +12 -8
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ pnpm add -D @better-css-modules/esbuild
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
import esbuild from
|
|
15
|
-
import betterCssModules from
|
|
14
|
+
import esbuild from "esbuild";
|
|
15
|
+
import betterCssModules from "@better-css-modules/esbuild";
|
|
16
16
|
|
|
17
17
|
esbuild.build({
|
|
18
18
|
plugins: [betterCssModules()],
|
|
@@ -23,11 +23,20 @@ esbuild.build({
|
|
|
23
23
|
|
|
24
24
|
```ts
|
|
25
25
|
betterCssModules({
|
|
26
|
-
include: [
|
|
27
|
-
|
|
26
|
+
include: ["src/**/*.module.css"],
|
|
27
|
+
exclude: [],
|
|
28
|
+
outDir: "__generated__",
|
|
29
|
+
silent: false,
|
|
28
30
|
});
|
|
29
31
|
```
|
|
30
32
|
|
|
33
|
+
| Option | Type | Default | Description |
|
|
34
|
+
| --------- | ---------- | ------------------------- | -------------------------------------------- |
|
|
35
|
+
| `include` | `string[]` | `["src/**/*.module.css"]` | Glob patterns for target CSS Modules files |
|
|
36
|
+
| `exclude` | `string[]` | `[]` | Glob patterns to exclude |
|
|
37
|
+
| `outDir` | `string` | `"__generated__"` | Output directory for generated `.d.ts` files |
|
|
38
|
+
| `silent` | `boolean` | `false` | Suppress console output |
|
|
39
|
+
|
|
31
40
|
## License
|
|
32
41
|
|
|
33
42
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-css-modules/esbuild",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "k8o",
|
|
6
6
|
"repository": {
|
|
@@ -8,20 +8,24 @@
|
|
|
8
8
|
"url": "git+https://github.com/k35o/better-css-modules.git",
|
|
9
9
|
"directory": "packages/esbuild"
|
|
10
10
|
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
11
14
|
"type": "module",
|
|
15
|
+
"main": "./dist/index.cjs",
|
|
16
|
+
"module": "./dist/index.mjs",
|
|
17
|
+
"types": "./dist/index.d.mts",
|
|
12
18
|
"exports": {
|
|
13
19
|
".": {
|
|
20
|
+
"types": {
|
|
21
|
+
"import": "./dist/index.d.mts",
|
|
22
|
+
"require": "./dist/index.d.cts"
|
|
23
|
+
},
|
|
14
24
|
"import": "./dist/index.mjs",
|
|
15
25
|
"require": "./dist/index.cjs"
|
|
16
26
|
}
|
|
17
27
|
},
|
|
18
|
-
"main": "./dist/index.cjs",
|
|
19
|
-
"module": "./dist/index.mjs",
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"files": [
|
|
22
|
-
"dist"
|
|
23
|
-
],
|
|
24
28
|
"dependencies": {
|
|
25
|
-
"@better-css-modules/unplugin": "0.1.
|
|
29
|
+
"@better-css-modules/unplugin": "0.1.3"
|
|
26
30
|
}
|
|
27
31
|
}
|