diff --git a/src/content/configuration/resolve.mdx b/src/content/configuration/resolve.mdx index 5b4bb39569ab..a24d895b2025 100644 --- a/src/content/configuration/resolve.mdx +++ b/src/content/configuration/resolve.mdx @@ -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']`