Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

named export of a const function inside the declaration isn't exported to global #808

Open
fossamagna opened this issue May 14, 2023 · 0 comments

Comments

@fossamagna
Copy link
Owner

I did add two other use cases in my repo, one that works and one that isn't. They are more edge case situation I would say, nice to have.

The one not working is when doing a named export of a const function inside the declaration and not as an export list like below.

I'll leave it to you to close this issue or leave it open for this "nice to have" second part.

export const doGet = () => {
  const title = "Google Apps Script";
  const fileName = "index.html";
  return HtmlService.createHtmlOutputFromFile(fileName)
    .setTitle(title)
    .setXFrameOptionsMode(HtmlService.XFrameOptionsMode.DEFAULT);
};

Thank you very much again!

Originally posted by @sharky98 in #794 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant