Skip to content

Chore/migrate to vite#798

Open
hdnax wants to merge 44 commits intomasterfrom
chore/migrate-to-vite
Open

Chore/migrate to vite#798
hdnax wants to merge 44 commits intomasterfrom
chore/migrate-to-vite

Conversation

@hdnax
Copy link
Contributor

@hdnax hdnax commented Jan 9, 2026

Summary

  • #DBX-6431
  • #DBX-6627
  • Migrate babel & jest to vite & vitest to speed up build & test process of @dbml/core.
  • Support CJS and ESM build targets for both @dbml/core and @dbml/connector.
  • Disable coverage in @dbml/core as it's taking too much time.

Improved build performance of @dbml/core:

  • Before: 101.81s (1.5 min)
  • After: 9.90s

Improved test performance of @dbml/core:

  • Before: 614.30s (10 min)
  • After: 192.51s (3 min)

Improved bundled size of @dbml/core:

  • Before: 30MB (CJS)
  • After:
    • CJS: 15.2 MB
    • ESM: 22.5 MB

Issue

(issue link here)

Lasting Changes (Technical)

(please list down: code changes/things that have wide-effect; new libraries/functions added that can be used by others; examples below)

  • (Added class EmailValidator to validate email address' validity)
  • (Added Tenant#is_trial? check)

Checklist

Please check directly on the box once each of these are done

  • Documentation (if necessary)
  • Lint checks
  • Tests (integration test/unit test)
  • Integration Tests Passed
  • Code Review

@hdnax hdnax changed the base branch from master to test/add-comprehensive-parser-tests January 9, 2026 16:19
@hdnax hdnax added PR: Refactor 🧹 PR: Internal 🏡 A type of pull request used for changelog categories labels Jan 9, 2026
Base automatically changed from test/add-comprehensive-parser-tests to master January 12, 2026 10:41
@hdnax hdnax marked this pull request as draft January 25, 2026 07:52
@hdnax hdnax force-pushed the chore/migrate-to-vite branch 12 times, most recently from 009098b to 289647a Compare February 4, 2026 14:59
@hdnax hdnax marked this pull request as ready for review February 5, 2026 05:45
@hdnax hdnax force-pushed the chore/migrate-to-vite branch 3 times, most recently from 9ffd4bd to e59f418 Compare February 5, 2026 09:56
@linear
Copy link

linear bot commented Feb 5, 2026

hdnax added 28 commits February 6, 2026 14:29
@hdnax hdnax force-pushed the chore/migrate-to-vite branch from 2c1ede0 to 15806c5 Compare February 6, 2026 07:35
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Coverage Report

Commit: cbfcf25

Overall Coverage

Metric Coverage
Lines ✅ 84.48% (4522/5353)
Statements ✅ 84.36% (4799/5689)
Functions ✅ 89.40% (1071/1198)
Branches ⚠️ 76.88% (2408/3132)

Package Coverage

Package Lines Statements Functions Branches
@dbml/dbml-cli ✅ 100.00% ✅ 100.00% ✅ 100.00% ✅ 100.00%
@dbml/dbml-connector ⚠️ 64.58% ⚠️ 64.39% ⚠️ 59.53% ⚠️ 59.13%
@dbml/dbml-core N/A N/A N/A N/A
@dbml/dbml-parse ✅ 88.73% ✅ 88.66% ✅ 94.43% ✅ 80.50%

⚠️ Coverage Warnings

The following packages have coverage below 80%:

  • @dbml/dbml-connector: 64.58% line coverage

Files with Coverage Below 80%

@dbml/dbml-connector

9 file(s) below 80% coverage
File Lines Statements Functions Branches
src/connectors/bigquery/index.ts 0.00% 0.00% 0.00% 0.00%
src/utils/credential-loader.ts 0.00% 0.00% 0.00% 0.00%
src/utils/helpers.ts 0.00% 0.00% 0.00% 0.00%
src/connectors/snowflake/index.ts 10.56% 10.31% 0.00% 0.00%
src/utils/parseSchema.ts 46.15% 42.85% 28.57% 27.27%
src/connectors/connector.ts 66.66% 66.66% 100.00% 57.14%
src/connectors/oracle/tables.ts 71.25% 67.39% 100.00% 56.96%
src/connectors/oracle/index.ts 80.00% 80.76% 100.00% 25.00%
src/connectors/oracle/utils.ts 85.71% 85.71% 100.00% 71.42%

@dbml/dbml-parse

33 file(s) below 80% coverage
File Lines Statements Functions Branches
src/compiler/queries/container/scope.ts 0.00% 0.00% 0.00% 100.00%
__tests__/utils/testHelpers.ts 11.76% 21.05% 50.00% 0.00%
src/core/interpreter/elementInterpreter/project.ts 51.42% 51.42% 100.00% 36.36%
src/core/analyzer/symbol/utils.ts 56.52% 56.52% 100.00% 50.00%
src/compiler/queries/parse.ts 60.00% 60.00% 60.00% 100.00%
src/core/analyzer/binder/elementBinder/note.ts 62.50% 64.70% 83.33% 50.00%
src/services/suggestions/utils.ts 65.21% 65.21% 100.00% 56.00%
src/compiler/queries/token.ts 66.66% 66.66% 66.66% 100.00%
src/core/analyzer/binder/elementBinder/enum.ts 66.66% 68.42% 100.00% 50.00%
src/core/analyzer/validator/elementValidators/indexes.ts 72.00% 72.83% 90.90% 57.69%
src/core/analyzer/validator/elementValidators/note.ts 72.54% 70.90% 76.92% 68.75%
src/core/analyzer/analyzer.ts 75.00% 66.66% 60.00% 100.00%
src/core/utils.ts 75.86% 75.00% 72.72% 56.66%
src/core/analyzer/symbol/symbolIndex.ts 76.92% 77.50% 92.85% 50.00%
src/core/analyzer/binder/elementBinder/project.ts 77.77% 78.94% 100.00% 50.00%
src/core/analyzer/validator/elementValidators/checks.ts 77.77% 79.31% 93.75% 71.87%
src/core/analyzer/validator/elementValidators/project.ts 78.12% 78.78% 100.00% 56.25%
src/core/analyzer/utils.ts 78.16% 77.27% 86.66% 76.71%
src/core/analyzer/binder/elementBinder/ref.ts 78.78% 80.00% 90.90% 75.00%
src/core/analyzer/binder/elementBinder/indexes.ts 79.06% 77.77% 90.90% 68.18%
src/core/parser/utils.ts 79.57% 80.13% 100.00% 86.15%
src/core/analyzer/binder/elementBinder/tableGroup.ts 80.00% 80.64% 100.00% 50.00%
src/compiler/queries/container/token.ts 83.33% 85.71% 100.00% 75.00%
src/core/analyzer/validator/elementValidators/tablePartial.ts 83.43% 80.72% 87.23% 64.28%
src/core/analyzer/validator/elementValidators/enum.ts 83.72% 82.22% 84.21% 78.26%
src/core/parser/parser.ts 84.03% 84.23% 98.00% 76.67%
src/core/analyzer/binder/elementBinder/tablePartial.ts 86.00% 86.53% 100.00% 69.23%
src/compiler/queries/symbol.ts 91.30% 92.00% 100.00% 78.57%
__tests__/utils/compiler.ts 92.63% 92.53% 100.00% 71.11%
src/core/serialization/serialize.ts 93.33% 93.33% 66.66% 94.11%
src/core/interpreter/elementInterpreter/sticky_note.ts 95.00% 95.23% 100.00% 66.66%
src/core/analyzer/symbol/symbolTable.ts 100.00% 100.00% 100.00% 75.00%
src/services/definition/provider.ts 100.00% 100.00% 100.00% 75.00%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Internal 🏡 A type of pull request used for changelog categories PR: Refactor 🧹

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant