|
1 | 1 | import type { Plugin, PluginBuild } from 'esbuild';
|
2 |
| -import type { BundleOptions, CustomAtRules, TransformOptions } from 'lightningcss'; |
| 2 | +import type { |
| 3 | + BundleOptions, |
| 4 | + CustomAtRules, |
| 5 | + TransformOptions, |
| 6 | +} from 'lightningcss'; |
3 | 7 |
|
4 |
| -declare type EmitDtsConfig = Partial<Record<'.d.css.ts' | '.css.d.ts' | '*', string>>; |
| 8 | +declare type EmitDtsConfig = Partial< |
| 9 | + Record<'.d.css.ts' | '.css.d.ts' | '*', string> |
| 10 | +>; |
5 | 11 |
|
6 | 12 | declare interface BuildOptions
|
7 | 13 | extends Partial<
|
@@ -96,14 +102,18 @@ declare interface BuildOptions
|
96 | 102 | * - **pascalCaseOnly**: `.some-class-name` ==> `SomeClassName`, the original class name will be removed from the locals
|
97 | 103 | * @default "camelCaseOnly"
|
98 | 104 | */
|
99 |
| - localsConvention?: 'camelCase' | 'pascalCase' | 'camelCaseOnly' | 'pascalCaseOnly'; |
100 |
| - /** |
| 105 | + localsConvention?: |
| 106 | + | 'camelCase' |
| 107 | + | 'pascalCase' |
| 108 | + | 'camelCaseOnly' |
| 109 | + | 'pascalCaseOnly'; |
| 110 | + /** |
101 | 111 | * Features that should always be compiled, even when supported by targets.
|
102 | 112 | * @see https://lightningcss.dev/transpilation.html#feature-flags
|
103 | 113 | */
|
104 | 114 | featuresInclude?: BundleOptions<CustomAtRules>['include'];
|
105 | 115 | /**
|
106 |
| - * Features that should never be compiled, even when unsupported by targets. |
| 116 | + * Features that should never be compiled, even when unsupported by targets. |
107 | 117 | * @see https://lightningcss.dev/transpilation.html#feature-flags
|
108 | 118 | */
|
109 | 119 | featuresExclude?: BundleOptions<CustomAtRules>['exclude'];
|
@@ -153,8 +163,8 @@ declare namespace CssModulesPlugin {
|
153 | 163 | export interface Build extends PluginBuild {
|
154 | 164 | context: BuildContext;
|
155 | 165 | }
|
156 |
| -} |
157 | 166 |
|
158 |
| -export default CssModulesPlugin; |
| 167 | + export default CssModulesPlugin; |
| 168 | +} |
159 | 169 |
|
160 | 170 | export = CssModulesPlugin;
|
0 commit comments