From f00f3b337f489a63d7420b5539355472cb7c9a4f Mon Sep 17 00:00:00 2001 From: Andreas Tzionis Date: Sat, 16 Dec 2023 23:30:52 +0200 Subject: [PATCH] restored cjs --- lib/rollup.config.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/rollup.config.js b/lib/rollup.config.js index 702ad3eb..316a719f 100644 --- a/lib/rollup.config.js +++ b/lib/rollup.config.js @@ -59,8 +59,16 @@ const nodeConfig = { const vanillaConfig = { ...browserConfig, input: 'client/vanilla/index.tsx', - output: [{ file: 'build/browser/index.js' }], + output: [{ file: 'build/browser/index.js', format: 'cjs' }], +} +const craftConfig = { + ...browserConfig, + input: 'client/craft/index.tsx', + output: [{ dir: 'build/browser/craft', format: 'cjs' }], +} +const grapesConfig = { + ...browserConfig, + input: 'client/grapes/index.ts', + output: [{ dir: 'build/browser/grapes', format: 'cjs' }], } -const craftConfig = { ...browserConfig, input: 'client/craft/index.tsx', output: [{ dir: 'build/browser/craft' }] } -const grapesConfig = { ...browserConfig, input: 'client/grapes/index.ts', output: [{ dir: 'build/browser/grapes' }] } export default [vanillaConfig, craftConfig, grapesConfig, nodeConfig]