Skip to content

@preconstruct/cli@2.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 May 00:00
· 40 commits to main since this release
958130b

Minor Changes

  • #543 93106e3 Thanks @Andarist! - Added a new exports.importConditionDefaultExport config option. It allows you to generate import exports condition (and corresponding files) to fix the export shape incompatibility between node and bundlers.

    With this option set to "default" this will always resolve to what has been written as a default export:

    // lib/src/index.js
    export default 42;
    export const named = "awesome";
    
    // app/consume.mjs
    import smth from "lib";
    smth; // 42, and not `{ default: 42, named: 'awesome' }`
  • 233ee25 Thanks @emmatown! - Top-level 'use server' directives are now also preserved like 'use client' directives.

Patch Changes

  • 4e72d99 Thanks @emmatown! - Fix 'use client' directives with comments preceding them not being detected