Skip to content

Commit

Permalink
Don't export a thing that isn't used elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed May 1, 2023
1 parent 338daef commit a863d53
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,7 @@ export * from ${escapedPath};${
}\n`;
}

export function esmReexportTemplate(
hasDefaultExport: boolean,
relativePath: string
) {
function esmReexportTemplate(hasDefaultExport: boolean, relativePath: string) {
const escapedPath = JSON.stringify(relativePath);
return `export * from ${escapedPath};${
hasDefaultExport ? `\nexport { default } from ${escapedPath};` : ""
Expand Down

0 comments on commit a863d53

Please sign in to comment.