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

fix(transformer): fix inserting require with front option #6188

Commits on Oct 1, 2024

  1. fix(transformer): fix inserting require with front option (#6188)

    Fix a tiny bug in `add_require`. If `front` option is `true` but there's already an entry for the key, it may not be the last entry in the index map, so `move_index(len, 0)` could swap a *different* `require` to be first.
    
    This will not make a difference in practice right now as we don't add enough `requires` at present for it to matter. But it might do once we add imports of helpers etc.
    overlookmotel committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    a28926f View commit details
    Browse the repository at this point in the history