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: Fix incorrect gobal export alias in buildFlatBarrel #558

Merged
merged 1 commit into from
Sep 14, 2023
Merged

fix: Fix incorrect gobal export alias in buildFlatBarrel #558

merged 1 commit into from
Sep 14, 2023

Commits on Sep 6, 2023

  1. fix: Fix incorrect gobal export alias in buildFlatBarrel

    This fixes a bug where an invalid export alias was generated when filenames
    had segments that started with a number preceded by a dash or ".".
    
    Examples using dashes and dots:
    ```typescript
    export { default as testFile-1 } from "./directory1/test-file-1";
    ```
    and
    ```typescript
    export { default as testFile.1 } from "./directory1/test.file.1";
    ```
    
    While underscores are allowed in aliases, dashes and dots is not.
    
    Fix is to extend the regex to also include numbers.
    Christian Probst committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    3a120b5 View commit details
    Browse the repository at this point in the history