Skip to content

Commit

Permalink
fix(typed-css-modules): avoid exporting invalid cssExports (#2474)
Browse files Browse the repository at this point in the history
  • Loading branch information
imranbarbhuiya authored May 30, 2024
1 parent 16cf910 commit e14d675
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-typed-css-modules/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const bannerMessage =
'// This file is automatically generated.\n// Please do not change this file!';

const cssModuleExport =
'export const cssExports: CssExports;\nexport default cssExports;\n';
'declare const cssExports: CssExports;\nexport default cssExports;\n';

const getNoDeclarationFileError = ({ filename }: { filename: string }) =>
new Error(
Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/community/releases/v0-7.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ interface CssExports {
'page-header': string;
pageHeader: string;
}
export const cssExports: CssExports;
declare const cssExports: CssExports;
export default cssExports;
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/guide/basic/css-modules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ interface CssExports {
'page-header': string;
pageHeader: string;
}
export const cssExports: CssExports;
declare const cssExports: CssExports;
export default cssExports;
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/plugins/list/plugin-typed-css-modules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interface CssExports {
'page-header': string;
pageHeader: string;
}
export const cssExports: CssExports;
declare const cssExports: CssExports;
export default cssExports;
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/community/releases/v0-7.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ interface CssExports {
'page-header': string;
pageHeader: string;
}
export const cssExports: CssExports;
declare const cssExports: CssExports;
export default cssExports;
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/guide/basic/css-modules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ interface CssExports {
'page-header': string;
pageHeader: string;
}
export const cssExports: CssExports;
declare const cssExports: CssExports;
export default cssExports;
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/plugins/list/plugin-typed-css-modules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interface CssExports {
'page-header': string;
pageHeader: string;
}
export const cssExports: CssExports;
declare const cssExports: CssExports;
export default cssExports;
```

Expand Down

0 comments on commit e14d675

Please sign in to comment.