From 696719c3770c7c13d9e2e5d70a0c267d93acf3d8 Mon Sep 17 00:00:00 2001 From: chenfan <83797583+chenfan0@users.noreply.github.com> Date: Wed, 11 Jan 2023 01:01:37 +0800 Subject: [PATCH] docs: update shared-options.md (#11649) --- docs/config/shared-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/shared-options.md b/docs/config/shared-options.md index fe04872a8770e4..861aa123f6a631 100644 --- a/docs/config/shared-options.md +++ b/docs/config/shared-options.md @@ -171,7 +171,7 @@ In future, `resolve.mainFields`'s default value will be `['browser', 'module', ' ## resolve.extensions - **Type:** `string[]` -- **Default:** `['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json']` +- **Default:** `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']` List of file extensions to try for imports that omit extensions. Note it is **NOT** recommended to omit extensions for custom import types (e.g. `.vue`) since it can interfere with IDE and type support.