Skip to content

Commit

Permalink
remove ".mts" and ".cts" from resolve extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Oct 5, 2021
1 parent 3a5e0e0 commit a89e85c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/esbuild/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/api_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a89e85c

Please sign in to comment.