Skip to content

Releases: preconstruct/preconstruct

@preconstruct/cli@2.6.1

02 May 01:01
826cdf8
Compare
Choose a tag to compare

Patch Changes

  • 5380890 Thanks @emmatown! - Disable specifying importConditionDefaultExport because it doesn't work correctly in "moduleResoltion": "bundler", @preconstruct/cli@2.6.0 is npm deprecated, importConditionDefaultExport will come back in the future.

@preconstruct/cli@2.6.0

02 May 00:00
958130b
Compare
Choose a tag to compare

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

@preconstruct/cli@2.5.0

10 Apr 23:14
bb10c5d
Compare
Choose a tag to compare

Minor Changes

  • #540 261140b Thanks @emmatown! - Self-referencing a package with its name is now allowed. They are emitted as written (not resolved to a particular bundle ahead of time).

Patch Changes

@preconstruct/cli@2.4.4

04 Apr 01:08
421041e
Compare
Choose a tag to compare

Patch Changes

  • 1f83965 Thanks @emmatown! - Fix preconstruct dev throwing a syntax error when an entrypoint has a .d.ts file with a default export.

@preconstruct/eslint-plugin-format-js-tag@0.3.0

03 Apr 22:20
cf8144a
Compare
Choose a tag to compare

Minor Changes

@preconstruct/cli@2.4.3

30 Mar 01:21
3c4eb95
Compare
Choose a tag to compare

Patch Changes

  • 7f6618a Thanks @emmatown! - Remove comment for preconstruct dev TypeScript re-export file

@preconstruct/cli@2.4.2

29 Mar 23:31
82ed2ae
Compare
Choose a tag to compare

Patch Changes

  • #530 2a3722c Thanks @emmatown! - Generate declaration maps for the .d.ts files that only re-export the actual entrypoints so that go to definition goes directly to the actual entrypoints.

@preconstruct/cli@2.4.1

27 Mar 03:52
00aabe7
Compare
Choose a tag to compare

Patch Changes

  • 457b707 Thanks @emmatown! - Fix having a "use client" in a non-entrypoint TypeScript file breaking the build

@preconstruct/cli@2.4.0

24 Mar 04:18
f2990ea
Compare
Choose a tag to compare

Minor Changes

  • #516 d363c88 Thanks @emmatown! - Modules with "use client" directives are now built as their own chunk with the "use client" directive preserved.

@preconstruct/cli@2.3.0

06 Jan 00:58
b2f99b7
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • #512 09784cd Thanks @emmatown! - Removed typeScriptProxyFileWithImportEqualsRequireAndExportEquals experimental flag.