AngelMunoz / Perla

A cross-platform tool for unbundled front-end development that doesn't depend on Node or requires you to install a complex toolchain
https://perla-docs.web.app/
MIT License
132 stars 11 forks source link

Library Mode #35

Closed AngelMunoz closed 1 year ago

AngelMunoz commented 3 years ago

Is your feature request related to a problem? Please describe. Right now, Perla only tries to work with websites, i.e. the main entry point is an index.html file, but if you want to develop a library this won't be that useful, you don't really need that index file, you only need an exported file and possibly a package.json file to deploy to npm afterwards

Describe the solution you'd like Allow in the configuration to build/serve in library mode, where the index file is used as a mere demo and the entry point is built as is with esbuild, ideally we should also emit a package.json file with the dependencies and corresponding declarations about modules and esm sources.

AngelMunoz commented 1 year ago

For the moment there is no plan to continue this part, if someone feels like adding support for this I'm all in