GhentCDH / vue_component_annotated_text

https://www.npmjs.com/package/@ghentcdh/vue-component-annotated-text
MIT License
0 stars 0 forks source link

Improved Configuration for Import Path Aliasing #9

Closed bovandersteene closed 1 week ago

bovandersteene commented 1 week ago

Describe the improvement While the current alias configuration for import paths using libraries can be useful, it poses risks such as unnoticed circular dependencies and inconsistencies in path usage. This request aims to refine the aliasing strategy to enhance clarity and maintainability.

Current Configuration

alias: {
  "@": path.resolve(__dirname, "./src"),
},

Concerns

  1. Circular Dependencies:
    • The existing configuration can allow circular dependencies to go unnoticed, potentially leading to runtime errors or unexpected behavior in the application.
  2. Inconsistent Path Usage:
    • The project contains a mix of import statements using both relative paths (./xxx) and alias paths (@xxx). This inconsistency can make the codebase harder to navigate and maintain.

Proposal

Remove the alias

Additional context Add any other context about the problem here.