From d5e812a36e92f9019a23a7ca5955f6bdd1340eb7 Mon Sep 17 00:00:00 2001 From: Ryan Trimble Date: Tue, 27 Feb 2024 10:17:59 -0500 Subject: [PATCH] updates output types --- package.json | 2 +- vite.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e4fecfd..99de02c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@ritterim/handholdjs", "description": "A configurable JavaScript hand held walk-through for user interfaces.", "version": "0.1.1", - "main": "dist/handhold.umd.js", + "main": "dist/handhold.mjs", "scripts": { "dev": "vite", "build": "vite build", diff --git a/vite.config.js b/vite.config.js index 6f7df4e..fc7a6f6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -24,7 +24,7 @@ export default defineConfig({ entry: resolve(__dirname, '/src/handhold.mjs'), name: 'HandholdJS', fileName: `handhold`, - formats: ['umd'], + formats: ['es', 'cjs'], }, }, });