Skip to content

Commit

Permalink
docs(configuration): add resolve.extensionAlias (webpack#6278)
Browse files Browse the repository at this point in the history
* docs(configuration): add `resolve.extensionAlias`

* chore: sort
  • Loading branch information
snitin315 authored Jul 16, 2022
1 parent 2114995 commit 98a6bd0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/content/configuration/resolve.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,26 @@ module.exports = {
};
```

### resolve.extensionAlias

`object`

An object which maps extension to extension aliases.

**webpack.config.js**

```js
module.exports = {
//...
resolve: {
extensionAlias: {
'.js': ['.ts', '.js'],
'.mjs': ['.mts', '.mjs'],
},
},
};
```

### resolve.extensions

`[string] = ['.js', '.json', '.wasm']`
Expand Down

0 comments on commit 98a6bd0

Please sign in to comment.