Skip to content

Commit

Permalink
refactor(compartment-mapper): Const export all functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed May 10, 2021
1 parent dec84dd commit ef841fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/compartment-mapper/src/infer-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function* interpretExports(name, exports, tags) {
* with any recognized module's type, if implied by a tag.
* @yields {[string, string]}
*/
export function* inferExportsEntries(
export const inferExportsEntries = function* inferExportsEntries(
{ name, main, module, browser, exports },
tags,
types,
Expand All @@ -99,7 +99,7 @@ export function* inferExportsEntries(
}
// TODO Otherwise, glob 'files' for all '.js', '.cjs', and '.mjs' entry
// modules, taking care to exclude node_modules.
}
};

/**
* inferExports reads a package.json (package descriptor) and constructs a map
Expand Down

0 comments on commit ef841fe

Please sign in to comment.