Skip to content

more esm imports#1431

Merged
gugu merged 1 commit into
mainfrom
import-fixes
Nov 14, 2025
Merged

more esm imports#1431
gugu merged 1 commit into
mainfrom
import-fixes

Conversation

@gugu

@gugu gugu commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 14, 2025 09:59
@gugu gugu enabled auto-merge (squash) November 14, 2025 09:59
@gugu gugu merged commit 414cfba into main Nov 14, 2025
18 checks passed
@gugu gugu deleted the import-fixes branch November 14, 2025 10:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR continues the migration to ESM (ECMAScript Module) imports in the frontend codebase by updating several import statements to use ESM-compatible paths and packages.

Key Changes:

  • Added lodash-es package as a dependency and migrated one import from lodash to lodash-es
  • Updated validator library imports to use ESM paths (validator/es/lib/)
  • Enhanced mermaid dynamic import handling with a fallback pattern for default exports

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
frontend/package.json Added lodash-es dependency for ESM support
frontend/yarn.lock Updated lockfile to include lodash-es package
frontend/src/app/validators/hostname.validator.ts Migrated validator imports to ESM paths
frontend/src/app/components/company/company.component.ts Switched orderBy import from lodash to lodash-es
frontend/src/app/components/dashboard/db-table-view/db-table-ai-panel/db-table-ai-panel.component.ts Added fallback handling for mermaid default export

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants