Skip to content

Commit

Permalink
docs: typescript migration (#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored May 31, 2024
1 parent d5ba44a commit 5cc0eba
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,26 @@ module.exports = {
};
```

Typescript migration:

Before:

```ts
declare module '*.module.css' {
const classes: { [key: string]: string };
export default classes;
}
```

After:

```ts
declare module '*.module.css' {
const classes: { [key: string]: string };
export = classes;
}
```

* The `modules.exportLocalsConvention` has the value `as-is` when the `modules.namedExport` option is `true` and you don't specify a value
* Minimum supported webpack version is `5.27.0`
* Minimum supported Node.js version is `18.12.0`
Expand Down

0 comments on commit 5cc0eba

Please sign in to comment.