Skip to content

Commit

Permalink
update ModuleFormat to understand latest rescript.json module con…
Browse files Browse the repository at this point in the history
…fig (#1059)
  • Loading branch information
cbowling authored Dec 18, 2024
1 parent 9651f4f commit 541b1e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/src/buildSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export enum ModuleFormat {
Commonjs = "commonjs",
Es6 = "es6",
Es6Global = "es6-global",
Esmodule = "esmodule",
}

export interface ModuleFormatObject {
Expand Down
1 change: 1 addition & 0 deletions server/src/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as c from "./constants";

const getCompiledFolderName = (moduleFormat: ModuleFormat): string => {
switch (moduleFormat) {
case "esmodule":
case "es6":
return "es6";
case "es6-global":
Expand Down

0 comments on commit 541b1e4

Please sign in to comment.