Skip to content

Conversation

sebst
Copy link

@sebst sebst commented May 23, 2025

Summary

module is not available on WorkersScript. Updated to Service Worker Syntax

Documentation checklist

`module` is not available on `WorkersScript`. Updated to Service Worker Syntax
Copy link
Contributor

hyperlint-ai bot commented May 23, 2025

Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.


PR Change Summary

Updated the hello-world documentation to reflect changes in Service Worker syntax.

  • Replaced ES6 module syntax with Service Worker event listener syntax
  • Removed the module flag from the WorkersScript configuration
  • Updated multiple instances of the hello-world example to use the new syntax

Modified Files

  • src/content/docs/pulumi/tutorial/hello-world.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

@praneetloke
Copy link

praneetloke commented Oct 15, 2025

@sebst I believe you just need to set the mainModule property to worker.js since that's the default module name. That's the only change you'll likely need in order to make the example work with ES6 modules.

pulumi/pulumi-cloudflare#969 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants