You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When launching miniflare esbuild won't rerun on change, so old file gets loaded. I've checked my config and I don't think there's some sort of browser caching is involved.
wrangler.toml
name = "test-worker"
type = 'javascript'
account_id = ''
route = ''
zone_id = ''
usage_model = ''
workers_dev = true
compatibility_date = "2021-09-17"
[build]
watch_dir="./js"
command = "npm run buildes"
[build.upload]
# The "modules" upload format is required for all projects that export a Durable Objects class
format = "service-worker"
Hey! 👋 This is definitely a bug in Miniflare. Because of the ./ at the front of ./js, it's not realising the change is within the js directory. 🤦♂️ I'll fix this, but in the meantime, you should be able to change watch_dir to "js".
Hey! 👋 The first pre-release of Miniflare 2 has just been released, including this fix. You can find the full changelog here and install it with npm i miniflare@next -D. Please let me know if you have any other issues, and feel free to ask questions in the #miniflare channel of the Cloudflare Workers Discord server.
When launching miniflare esbuild won't rerun on change, so old file gets loaded. I've checked my config and I don't think there's some sort of browser caching is involved.
wrangler.toml
package.json
terminal
second console.log should be 31333
The text was updated successfully, but these errors were encountered: