From 97b50aea5754c270704d41438133cb73bde53e19 Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Fri, 1 Nov 2024 20:17:53 +0000 Subject: [PATCH] Fixed #6709 - Forms: Incorrect main/module/exports error when importing --- packages/forms/rollup.config.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/forms/rollup.config.mjs b/packages/forms/rollup.config.mjs index acac2d975..29976a15d 100644 --- a/packages/forms/rollup.config.mjs +++ b/packages/forms/rollup.config.mjs @@ -218,9 +218,14 @@ function addUseForm() { ENTRY.format.es({ input: process.env.INPUT_DIR + 'useform/index.js', output: process.env.OUTPUT_DIR + 'useform/index' }); } +function addLibrary() { + ENTRY.format.es({ input: process.env.INPUT_DIR + 'index.js', output: process.env.OUTPUT_DIR + 'index' }); +} + addFile(); addStyle(); addResolvers(); addUseForm(); +addLibrary(); export default ENTRY.entries;