Skip to content

fix: resolve #572 — Consider not parsing/stringifying cached transform#1071

Open
SlncTrZ wants to merge 3 commits into
babel:mainfrom
SlncTrZ:contribai/feat/add-loader-option-to-enable-raw-separate
Open

fix: resolve #572 — Consider not parsing/stringifying cached transform#1071
SlncTrZ wants to merge 3 commits into
babel:mainfrom
SlncTrZ:contribai/feat/add-loader-option-to-enable-raw-separate

Conversation

@SlncTrZ
Copy link
Copy Markdown

@SlncTrZ SlncTrZ commented May 9, 2026

Summary

fix: resolve #572 — Consider not parsing/stringifying cached transform

Problem

Severity: Medium | File: src/index.js

Extend the loader options to include a boolean cacheRaw (default false) that enables the new raw cache format. The option is passed to the cache module and can be used to opt into the performance improvement while preserving backward compatibility for existing setups. In a future major version, we may change the default to true.

Solution

Changes

  • src/schema.json (modified)
  • src/index.js (modified)
  • src/cache.js (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

Generated by ContribAI v6.8.0

SlncTrZ added 3 commits May 9, 2026 14:15
…nsform

Fixes babel#572

Signed-off-by: Dinh Truong (SlncTrZ) <46520299+SlncTrZ@users.noreply.github.com>
…nsform

Fixes babel#572

Signed-off-by: Dinh Truong (SlncTrZ) <46520299+SlncTrZ@users.noreply.github.com>
…nsform

Fixes babel#572

Signed-off-by: Dinh Truong (SlncTrZ) <46520299+SlncTrZ@users.noreply.github.com>
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.

Consider not parsing/stringifying cached transform

1 participant