Skip to content

refactor(v2): determine all available routes/url#1264

Merged
yangshun merged 4 commits into
facebook:masterfrom
endiliey:routesPaths
Mar 6, 2019
Merged

refactor(v2): determine all available routes/url#1264
yangshun merged 4 commits into
facebook:masterfrom
endiliey:routesPaths

Conversation

@endiliey

@endiliey endiliey commented Mar 6, 2019

Copy link
Copy Markdown
Contributor

Motivation

We can determine all available routes/urls when building the react-router config. So let's do that

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Locally debug the routesPaths value and add small test

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Mar 6, 2019
@endiliey endiliey requested a review from yangshun March 6, 2019 16:55
@docusaurus-bot

Copy link
Copy Markdown
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit bf8d973

https://deploy-preview-1264--docusaurus-preview.netlify.com

@docusaurus-bot

Copy link
Copy Markdown
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 343de97

https://deploy-preview-1264--docusaurus-preview.netlify.com

@docusaurus-bot

Copy link
Copy Markdown
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit f1bdd6b

https://deploy-preview-1264--docusaurus-preview.netlify.com

@docusaurus-bot

Copy link
Copy Markdown
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit f2bce8c

https://deploy-preview-1264--docusaurus-preview.netlify.com

@yangshun yangshun left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this is great! Thanks for helping me resolve one TODO 😄

Comment thread v2/lib/webpack/server.js
* LICENSE file in the root directory of this source tree.
*/

const _ = require('lodash');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically we can now remove lodash from the package.json but let's keep it around as I think it will be useful in future.

@yangshun yangshun merged commit 2ad7413 into facebook:master Mar 6, 2019
@endiliey endiliey deleted the routesPaths branch March 7, 2019 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants