@preconstruct/cli@2.6.0
github-actions
released this
02 May 00:00
·
40 commits
to main
since this release
Minor Changes
-
#543
93106e3
Thanks @Andarist! - Added a newexports.importConditionDefaultExport
config option. It allows you to generateimport
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.