Skip to content

fix(ts): prevent ts-node to register twice #5699

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

Merged
merged 1 commit into from
May 11, 2019
Merged

fix(ts): prevent ts-node to register twice #5699

merged 1 commit into from
May 11, 2019

Conversation

kevinmarrec
Copy link
Contributor

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

This add a guard to prevent ts-node registration to happen more than once.
We had a similar guard few Nuxt versions ago but it seems to have been unintentionally removed with last refactors.

Fixes https://github.com/nuxt/nuxt.js/issues/5626

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

@kevinmarrec kevinmarrec requested a review from pi0 May 11, 2019 12:56
@kevinmarrec kevinmarrec changed the title fix: prevent ts-node to register twice fix(ts): prevent ts-node to register twice May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants