Skip to content

Commit a89e85c

Browse files
committed
remove ".mts" and ".cts" from resolve extensions
1 parent 3a5e0e0 commit a89e85c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/esbuild/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var helpText = func(colors logger.Colors) string {
100100
--public-path=... Set the base URL for the "file" loader
101101
--pure:N Mark the name N as a pure function for tree shaking
102102
--resolve-extensions=... A comma-separated list of implicit extensions
103-
(default ".tsx,.ts,.cts,.mts,.jsx,.js,.css,.json")
103+
(default ".tsx,.ts,.jsx,.js,.css,.json")
104104
--servedir=... What to serve in addition to generated output files
105105
--source-root=... Sets the "sourceRoot" field in generated source maps
106106
--sourcefile=... Set the source file for the source map (for stdin)

pkg/api/api_impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ func isValidExtension(ext string) bool {
405405

406406
func validateResolveExtensions(log logger.Log, order []string) []string {
407407
if order == nil {
408-
return []string{".tsx", ".ts", ".cts", ".mts", ".jsx", ".js", ".css", ".json"}
408+
return []string{".tsx", ".ts", ".jsx", ".js", ".css", ".json"}
409409
}
410410
for _, ext := range order {
411411
if !isValidExtension(ext) {

0 commit comments

Comments
 (0)