react-three-editor icon indicating copy to clipboard operation
react-three-editor copied to clipboard

Question: Will this project support webpack?

Open MartinRGB opened this issue 2 years ago • 8 comments

MartinRGB avatar Dec 25 '22 18:12 MartinRGB

No, not yet and not sure sure what would be needed to support webpack. it needs a dev server integration

nksaraf avatar Dec 27 '22 08:12 nksaraf

Could we start moving away from the Vite specific integrations? For example the current api server is tied directly to Vite, it could be its own standalone process that's agnostic.

itsdouges avatar Dec 31 '22 10:12 itsdouges

What would that look like? Would it require an additional install?

krispya avatar Dec 31 '22 20:12 krispya

It wouldn't we can ship the code for a node process (either as a package or module) in editor package and start it up in the plugin as a sub process.

itsdouges avatar Dec 31 '22 21:12 itsdouges

I don't know much about how this changes the backend but from a DX perspective this sounds good to me. 👍

krispya avatar Dec 31 '22 22:12 krispya

I would want to approach this in a way like this. We make things work with one setup, right now vite. This will give us a few parts.

  • Babel plugins to apply to source code when being run in the browser.
  • Transforms for modifying the code using babel.
  • RPC API between the browser and any supported dev server.

With this we should be able to support any other bundler/platform. For any bundler, its better to integrate with its tooling to get efficiency gains and use whatever comes out of the box.

Also would like to avoid additional processes if not needed. Running node in multiple processes kinda starts eating up RAM.

nksaraf avatar Jan 01 '23 21:01 nksaraf

Is there a roadmap for this feature? I would like to add this to an existing project made with NextJS. I assume this is not possible at the time?

netgfx avatar Jun 16 '23 09:06 netgfx

I believe this project has been abandoned. I'd suggest looking at Triplex: https://github.com/try-triplex/triplex

krispya avatar Jun 16 '23 17:06 krispya