wallabyjs / console-ninja

Repository for Console Ninja questions and issues
https://console-ninja.com
Other
382 stars 21 forks source link

[Feature]: Add support for Wrangler #207

Open hagishi opened 1 year ago

hagishi commented 1 year ago

Describe the feature you'd like.

Having support for Wrangler (Cloudflare developer products) would enhance the development experience.

smcenlly commented 1 year ago

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.

hagishi commented 1 year ago

@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

Puliczek commented 5 months ago

+1 :)

smcenlly commented 5 months ago

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.