exhibitionist-digital / ultra

Zero-Legacy Deno/React Suspense SSR Framework
https://ultrajs.dev
MIT License
3k stars 67 forks source link

proposal: ultra.config.js feedback wanted #149

Closed deckchairlabs closed 2 years ago

deckchairlabs commented 2 years ago

I'd like to reduce some duplication of configuration passed to both createServer and createBuilder

So something like this. Thoughts?

export default {
  browserEntrypoint: './client.tsx',
  serverEntrypoint: './server.tsx',
}
mashaal commented 2 years ago

Would simplify both server and builder, but I wonder if it's too soon to add something like this? Maybe we see how it goes using them in the wild without this first?

deckchairlabs commented 2 years ago

I suppose we don't need to build support into ultra itself, since you could just create a config file and import that