Releases: preconstruct/preconstruct
Releases · preconstruct/preconstruct
@preconstruct/cli@2.6.1
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
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
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
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
@preconstruct/cli@2.4.3
Patch Changes
7f6618a
Thanks @emmatown! - Remove comment for preconstruct dev
TypeScript re-export file
@preconstruct/cli@2.4.2
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
Patch Changes
457b707
Thanks @emmatown! - Fix having a "use client"
in a non-entrypoint TypeScript file breaking the build
@preconstruct/cli@2.4.0
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
Minor Changes
Patch Changes
- #512
09784cd
Thanks @emmatown! - Removed typeScriptProxyFileWithImportEqualsRequireAndExportEquals
experimental flag.