neutrinojs / neutrino

Create and build modern JavaScript projects with zero initial configuration.
https://neutrinojs.org
Mozilla Public License 2.0
3.95k stars 214 forks source link

Nested React components #1526

Closed friedjoff closed 7 months ago

friedjoff commented 4 years ago

Based on Neutrino 9 I'm trying to create a library which provides multiple React components in a nested directory structure.

For example ...

src/components/Foo1/index.jsx
src/components/bar/Foo2/index.jsx

... should result in ...

build/Foo1.js
build/bar/Foo2.js

Right now this seems not possible based on the @neutrinojs/react-components preset. This change seems like an important enhancement for larger React component libraries and I don't see any disadvantage.

badazz91 commented 2 years ago

Are there any developments on this issue? Is there a middleware that supports nested structures already?

badazz91 commented 2 years ago

hey - @friedjoff, @edmorley any thoughts on the above? is there an easy way to adjust the existing middleware to achieve this?

would be great if there was a standard solution included.

edmorley commented 2 years ago

Hi! I no longer use this project and don't have the time to maintain it unfortunately.