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

Migrate to Wrangler 2 #39

Open
qbunt opened this issue May 10, 2022 · 2 comments
Open

Migrate to Wrangler 2 #39

qbunt opened this issue May 10, 2022 · 2 comments

Comments

@qbunt
Copy link

qbunt commented May 10, 2022

With the release of Wrangler 2, there are a variety of deprecations that should be handled in the wrangler.toml file, as well as a build process change for webpack based workers. Most importantly, Wrangler 2 now supports the ESM module syntax, which will require a number of source code changes.

We're going to try getting a PR for this together in the upgrade of our own project, but wanted to track this ticket.

@sebasospina343
Copy link

Any luck with this? I have followed this guide to create a custom build: https://developers.cloudflare.com/workers/wrangler/migration/eject-webpack/#migrate-webpack-projects-from-wrangler-version-1

When I follow the steps, webpack-cli can't find webpack.config file, althought is no longer needed 😪

[webpack-cli] Failed to load 'C:\Users\user\Desktop\repos\my-app2\webpack.config.js' config

@kimyvgy
Copy link

kimyvgy commented Sep 29, 2022

I created a template repository to deploy apollo-server to cloudflare workers during researching about Cloudflare Workers.
It is based on this repository with some changes from me.

  • Typescript support
  • Wrangler v2
  • Esbuild support
  • Webpack is removed

Link: https://github.com/kimyvgy/worker-apollo-server
Live demo: https://worker-apollo-server.webee-asia.workers.dev/playground

I would like to transfer it to Cloudflare orgnization if I can. Thanks to Cloudflare for the helpful repository.

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

3 participants