• 1.2.1 2c810116be

    1.2.1 Stable

    mburchard released this 2026-02-25 20:02:04 +00:00 | 13 commits to main since this release

    Source Map Resolution: Explicit Configuration

    Source map resolution now uses an explicit opt-in API instead of auto-detecting @jridgewell/trace-mapping via dynamic import(). This prevents bundlers (Vite, Rollup, Webpack) from pulling trace-mapping into the production bundle when source map resolution is not needed.

    Setup

    import {originalPositionFor, TraceMap} from '@jridgewell/trace-mapping';
    import {configureSourceMapResolver} from '@mburchard/bit-log';
    
    configureSourceMapResolver(TraceMap, originalPositionFor);
    

    Call configureSourceMapResolver() before configureLogging() so the resolver is active from the first log event. Without this call, call sites still work but show compiled positions.

    Other Changes

    • Upgrade ESLint to v10
    • Update dev dependencies
    Downloads