From a89e85cdc22ad6f973ec564815eda1935f827bf0 Mon Sep 17 00:00:00 2001 From: Evan Wallace Date: Tue, 5 Oct 2021 01:46:44 -0400 Subject: [PATCH] remove ".mts" and ".cts" from resolve extensions --- cmd/esbuild/main.go | 2 +- pkg/api/api_impl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/esbuild/main.go b/cmd/esbuild/main.go index d7b874d4297..93487b589a8 100644 --- a/cmd/esbuild/main.go +++ b/cmd/esbuild/main.go @@ -100,7 +100,7 @@ var helpText = func(colors logger.Colors) string { --public-path=... Set the base URL for the "file" loader --pure:N Mark the name N as a pure function for tree shaking --resolve-extensions=... A comma-separated list of implicit extensions - (default ".tsx,.ts,.cts,.mts,.jsx,.js,.css,.json") + (default ".tsx,.ts,.jsx,.js,.css,.json") --servedir=... What to serve in addition to generated output files --source-root=... Sets the "sourceRoot" field in generated source maps --sourcefile=... Set the source file for the source map (for stdin) diff --git a/pkg/api/api_impl.go b/pkg/api/api_impl.go index b933cdc2cf5..89629d5ad44 100644 --- a/pkg/api/api_impl.go +++ b/pkg/api/api_impl.go @@ -405,7 +405,7 @@ func isValidExtension(ext string) bool { func validateResolveExtensions(log logger.Log, order []string) []string { if order == nil { - return []string{".tsx", ".ts", ".cts", ".mts", ".jsx", ".js", ".css", ".json"} + return []string{".tsx", ".ts", ".jsx", ".js", ".css", ".json"} } for _, ext := range order { if !isValidExtension(ext) {