* feat: add store module HMR
* fix: replace export with window.$nuxt
Thanks to @pi0 for the suggestion :)
* refactor: apply only in dev mode on client side
* test: make store module test more descriptive
* fix: clear modules to apply HMR
* fix: remove console.log
* fix: e2e tests
* refactor: use void
- Better insights and inspection for server bundle
- Remove all vue related dependencies from vue-renderer package as much as possible to reduce install size of nuxt-start
- Support for single file distributions (serverless)
- Remove server-bundle.json and use the standard .js files for dist/server
- Mitigate CALL_AND_RETRY_LAST Allocation failed errors. Most of the cases happen on JSON.parse() the part when loading bundle. (#4225, #3465, #1728, #1601, #1481)
- Reduce server dist size by removing escape characters caused by JSON serialize
- Faster dev reloads and production start by removing extra JSON.serialize/JSON.parse time
- Less memory usage
- General performance improvements and refactors
* Use consola on server error
* fix style
* ignore coverage
* use `consola.error(e)`
* formatting server error
* fix style
* offer a new port and listen
* fix style
* simplify return
* Revert "fix style"
This reverts commit 770347adb9.
* Revert "simplify return"
This reverts commit 26f2588b2f.
* simplified tests
* remove dependency `get-port`
* using port `0` to assign a random free port
* update `this.port` value with `address.port`
* For production, use `consola.fatal`
* pass options.dev from server to listener constructor
* add dev on constructor
* improve serverErrorHandler and close
* Update listener.js
* improve serverErrorHandler
* improve the way to handle listen errors
* fix missed line
* fully close old server before listening on a random port
* update listen.test
* feat: modern build
* refactor: use single module import for lodash
* refactor: add credit comment for modern plugin
* feat: ssr modern build
* fix: not null check for request
* fix: not null check for request.headers
* feat: add modern argument on build command
* refactor: simpilfy filenames for modern
* refactor: use packages/webpack src instead of dist in test
* test: add feature test for modern build