Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(gatsby): Convert redirects-writer to typescript #22530

Merged
merged 3 commits into from
May 5, 2020

Conversation

mottox2
Copy link
Contributor

@mottox2 mottox2 commented Mar 24, 2020

Description

This PR converts bootstrap/redirects-writer.js to TypeScript

Related Issues

Related to #21995

Copy link
Contributor

@blainekasten blainekasten left a comment

Choose a reason for hiding this comment

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

This is looking great! One change I think we need to make (I'm hoping this is safe). Is that we need to reduce the side-effects of importing a module. E.g., the global scope emitter here is a side-effect.

Is it possible to wrap that in an exported function and call it in appropriate places when imported?

@pieh pieh self-assigned this May 5, 2020
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for removing import side effect and wrapping it with startRedirectListener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants