Skip to content

feat: add api "auto" and use it by default#1319

Merged
alexander-akait merged 4 commits into
mainfrom
claude/auto-api-async-compiler-OYfgF
May 12, 2026
Merged

feat: add api "auto" and use it by default#1319
alexander-akait merged 4 commits into
mainfrom
claude/auto-api-async-compiler-OYfgF

Conversation

@alexander-akait
Copy link
Copy Markdown
Member

When the resolved Sass implementation exposes initAsyncCompiler,
auto picks the modern-compiler API (which reuses a single long-running
compiler across files); otherwise it falls back to the modern API. The
default value of the api option is now auto, so sass and
sass-embedded users get the modern-compiler speedup out of the box
without any configuration.

https://claude.ai/code/session_01Php4VTSCnDbpbh7BgJxPud

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 12, 2026

🦋 Changeset detected

Latest commit: b5a1a28

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sass-loader Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 12, 2026

CLA Not Signed

claude added 2 commits May 12, 2026 19:49
When the resolved Sass implementation exposes `initAsyncCompiler`,
`auto` picks the modern-compiler API (which reuses a single long-running
compiler across files); otherwise it falls back to the modern API. The
default value of the `api` option is now `auto`, so `sass` and
`sass-embedded` users get the modern-compiler speedup out of the box
without any configuration.

https://claude.ai/code/session_01Php4VTSCnDbpbh7BgJxPud
Drops the nested-ternary at the call site by letting `getCompileFn`
default `apiType` to `"auto"` and treat it the same as
`"modern-compiler"` when the implementation exposes
`initAsyncCompiler`.

https://claude.ai/code/session_01Php4VTSCnDbpbh7BgJxPud
@alexander-akait alexander-akait force-pushed the claude/auto-api-async-compiler-OYfgF branch 2 times, most recently from c02bb92 to f350c6e Compare May 12, 2026 19:52
@alexander-akait alexander-akait force-pushed the claude/auto-api-async-compiler-OYfgF branch from f350c6e to d97cf9d Compare May 12, 2026 19:53
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.35%. Comparing base (cf34e2b) to head (b5a1a28).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1319      +/-   ##
==========================================
+ Coverage   92.30%   92.35%   +0.05%     
==========================================
  Files           3        3              
  Lines         299      301       +2     
  Branches      104      106       +2     
==========================================
+ Hits          276      278       +2     
  Misses         20       20              
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Fixes pre-existing `unicorn/no-array-sort` lint errors so the lint job
stays clean.

https://claude.ai/code/session_01Php4VTSCnDbpbh7BgJxPud
@alexander-akait alexander-akait merged commit 90a9170 into main May 12, 2026
13 of 14 checks passed
@alexander-akait alexander-akait deleted the claude/auto-api-async-compiler-OYfgF branch May 12, 2026 21:06
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