mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
72e7929242
Resolves #4055 Credit: https://github.com/zeit/next.js/pull/5095 I didn't use the ignore webpack plugin from the original PR and tested bundle size with https://github.com/zeit/next.js/pull/5339 - seems to be safe on that front. Was able to get tests to pass locally, unsure of what goes wrong in CI 🤷♂️ **Questions** 1) The initial PR didn't include changes to `next-server/lib/router` in `getRouteInfo()`. Should the same changes be made within? 2) Should we add a test for rendering a component created via `forwardRef()`? `component-with-forwardedRef`: ```javascript export default React.forwardRef((props, ref) => <span {...props} forwardedRef={ref}>This is a component with a forwarded ref</span>); ``` some test: ```javascript test('renders from forwardRef', async () => { const $ = await get$('/component-with-forwardedRef') const span = $('span') expect(span.text()).toMatch(/This is a component with a forwarded ref/) }) ```
56 lines
1.1 KiB
JSON
56 lines
1.1 KiB
JSON
{
|
|
"name": "next-server",
|
|
"version": "7.0.2-canary.47",
|
|
"main": "./index.js",
|
|
"license": "MIT",
|
|
"files": [
|
|
"dist",
|
|
"index.js",
|
|
"asset.js",
|
|
"config.js",
|
|
"constants.js",
|
|
"dynamic.js",
|
|
"head.js",
|
|
"link.js",
|
|
"router.js",
|
|
"next-config.js"
|
|
],
|
|
"scripts": {
|
|
"build": "taskr",
|
|
"release": "taskr release",
|
|
"prepublish": "npm run release",
|
|
"typescript": "tsc --noEmit"
|
|
},
|
|
"taskr": {
|
|
"requires": [
|
|
"./taskfile-typescript.js"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"etag": "1.8.1",
|
|
"find-up": "3.0.0",
|
|
"fresh": "0.5.2",
|
|
"path-to-regexp": "2.1.0",
|
|
"prop-types": "15.6.2",
|
|
"send": "0.16.1",
|
|
"url": "0.11.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^16.0.0",
|
|
"react-dom": "^16.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@taskr/clear": "1.1.0",
|
|
"@taskr/watch": "1.1.0",
|
|
"@types/react": "16.7.13",
|
|
"@types/react-dom": "16.0.11",
|
|
"@types/react-is": "16.5.0",
|
|
"@types/send": "0.14.4",
|
|
"taskr": "1.1.0",
|
|
"typescript": "3.1.6"
|
|
},
|
|
"engines": {
|
|
"node": ">= 8.0.0"
|
|
}
|
|
}
|