[Feature]: Add support for Wrangler
Describe the feature you'd like.
Having support for Wrangler (Cloudflare developer products) would enhance the development experience.
Thanks for the request. We're not familiar with Wrangler.
To expedite the evaluation of your feature request, please provide us with a sample project that uses the technology and instructions to start in dev mode.
@smcenlly
Thank you for the message.
I've created a sample project and would like to share it with you. https://github.com/hagishi/ninja-sample-project
+1 :)
Console Ninja needs to be able to intercept file-read operations to perform its processing. Currently, wrangler dev uses esbuild with the esbuild.watch mode, which runs in a separate process outside of the JavaScript runtime. With esbuild.watch, all file-read operations occur in a completely separate process outside of the JavaScript runtime in esbuild's native binary and there's no opportunity for Console Ninja to perform its processing.
We do not currently have a technical solution for supporting esbuild.watch, but we'll keep this issue open and update it if/when that changes.