- update vite to 4.x
-
update vite to 3.x
-
add apollo example
- lazy load swc
- The custom adapter function signature has been changed, see readme for more details.
- bump peer dependency vite version to 2.9.x
- now use Eslint instead of Prettier
- now use pnpm instead of yarn for monorepo
- you can truely disable esbuild when use swc as tsCompiler
- added '@swc/core' to excluded optimized modules
- add raw node server example
- set swc default config module to es6
- do deep merge for swc config
- @swc/core now is an optional peer dependency. if you want to use it as typescript compiler, you need to install it as dev dependency.
- config vite rollup config to tell vite the entry point to mute the warning
- now support customize swc config.
use ssr mode to build for production instead of using library mode
- Pass the dev server to the handler
- Requires vite 2.8 as peer dependency
- add vite build!
- remove node version requirement
- Starting from this patch, this plugin will use the vite http server instead of creating its own.
- config option
handler
renamed toadapter
- removed
server
config options, now you can just use vite server options, see vite doc
- fastify: use fastify.routing to handle incoming request
- Support async app
- code refactor for framework adapters. move out the http server from the adapter.
- now support to customize the export name of your app
- plugin config updated. Please take a look and update your config.
- add fastify support!
I re-implemented how this plugin works internally. Previously, this plugin relay on vite dev server HMR signals to restart the server, which is too slow. In this new version, the app is loaded on each request and the http server is always running.
- the named exported required from your entry renamed from
createViteNodeApp
toviteNodeApp
- update readme.md with new How? section
- add koa as builtin supported framework
- update usages section in readme.md
- add examples for all the supported framework