From 60eee9a73fba680d4a02a414929c5bd7e6ad53f9 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Thu, 22 Jun 2023 06:20:10 -0700 Subject: [PATCH] chore: better error messages for CJS users (#8790) --- packages/svelte/package.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 9d2be01c02..c1f9e8e515 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -25,43 +25,43 @@ ".": { "types": "./types/index.d.ts", "browser": { - "import": "./src/runtime/index.js" + "default": "./src/runtime/index.js" }, - "import": "./src/runtime/ssr.js" + "default": "./src/runtime/ssr.js" }, "./compiler": { "types": "./types/index.d.ts", - "import": "./src/compiler/index.js", - "require": "./compiler.cjs" + "require": "./compiler.cjs", + "default": "./src/compiler/index.js" }, "./action": { "types": "./types/index.d.ts" }, "./animate": { "types": "./types/index.d.ts", - "import": "./src/runtime/animate/index.js" + "default": "./src/runtime/animate/index.js" }, "./easing": { "types": "./types/index.d.ts", - "import": "./src/runtime/easing/index.js" + "default": "./src/runtime/easing/index.js" }, "./internal": { - "import": "./src/runtime/internal/index.js" + "default": "./src/runtime/internal/index.js" }, "./motion": { "types": "./types/index.d.ts", - "import": "./src/runtime/motion/index.js" + "default": "./src/runtime/motion/index.js" }, "./store": { "types": "./types/index.d.ts", - "import": "./src/runtime/store/index.js" + "default": "./src/runtime/store/index.js" }, "./internal/disclose-version": { "import": "./src/runtime/internal/disclose-version/index.js" }, "./transition": { "types": "./types/index.d.ts", - "import": "./src/runtime/transition/index.js" + "default": "./src/runtime/transition/index.js" }, "./elements": { "types": "./elements.d.ts"