1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/packages/next/build/webpack/loaders
Tim Neutkens 07c6e2852f
Export render instead of default for serverless target (#5979)
Extends on #5927, instead of `.default` we'll expose `.render` which is semantically more correct / mirrors the naming of the custom server API.

I've updated the spec in #5927 to reflect this change.

(copied from #5927):

```js
const http = require('http')
const page = require('./.next/serverless/about.js')
const server = new http.Server((req, res) => page.render(req, res))
server.listen(3000, () => console.log('Listening on http://localhost:3000'))
```
2019-01-02 14:59:28 +01:00
..
emit-file-loader.js Monorepo (#5341) 2018-10-01 01:02:10 +02:00
hot-self-accept-loader.js Remove flow types (#5704) 2018-11-21 16:04:37 +01:00
next-babel-loader.js Fix edge case where file had module.export in the content (#5823) 2018-12-05 14:37:26 +01:00
next-serverless-loader.ts Export render instead of default for serverless target (#5979) 2019-01-02 14:59:28 +01:00