Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tsc/internal/ast/parseoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GetExternalModuleIndicatorOptions(fileName tspath.RootedFilePath, options *
case core.ModuleDetectionKindAuto:
// If module is nodenext or node16, all esm format files are modules
// If jsx is react-jsx or react-jsxdev then jsx tags force module-ness
// otherwise, the presence of import or export statments (or import.meta) implies module-ness
// otherwise, the presence of import or export statements (or import.meta) implies module-ness
return ExternalModuleIndicatorOptions{
JSX: options.Jsx == core.JsxEmitReactJSX || options.Jsx == core.JsxEmitReactJSXDev,
Force: isFileForcedToBeModuleByFormat(fileName, options, metadata),
Expand Down
2 changes: 1 addition & 1 deletion tsc/internal/checker/nodecopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ func getExistingNodeTreeVisitor(b *NodeBuilderImpl, bound *recoveryBoundary) *as
// the position information if the node comes from a different file than the one the node builder
// is set to build for (even though we are reusing the node structure, the position information
// would make the printer print invalid spans for literals and identifiers, and the formatter would
// choke on the mismatched positonal spans between a parent and an injected child from another file).
// choke on the mismatched positional spans between a parent and an injected child from another file).
result = b.setTextRange(result, node)

if bound.hadError {
Expand Down
2 changes: 1 addition & 1 deletion tsc/internal/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ func (p *Parser) parseDelimitedList(kind ParsingContext, parseElement func(p *Pa
p.nextToken()
}
if startPos == p.nodePos() {
// What we're parsing isn't actually remotely recognizable as a element and we've consumed no tokens whatsoever
// What we're parsing isn't actually remotely recognizable as an element and we've consumed no tokens whatsoever
// Consume a token to advance the parser in some way and avoid an infinite loop
// This can happen when we're speculatively parsing parenthesized expressions which we think may be arrow functions,
// or when a modifier keyword which is disallowed as a parameter name (ie, `static` in strict mode) is supplied
Expand Down