Skip to content

Commit

Permalink
fix: ignore unknown export paths in JS
Browse files Browse the repository at this point in the history
  • Loading branch information
gabotechs committed Dec 26, 2023
1 parent 6a70396 commit da67cea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/js/.exports_test/src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from "foo"
export * from "./utils"
export { Unexisting, UnSorter as UnSorterAlias } from "./utils"
export { Foo } from "./unexisting"
Expand Down
2 changes: 2 additions & 0 deletions internal/js/exports.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func (l *Language) ParseExports(file *js_grammar.File) (*language.ExportsEntries
if err != nil {
errors = append(errors, err)
continue
} else if exportFrom == "" {
continue
}

switch {
Expand Down

0 comments on commit da67cea

Please sign in to comment.