From 7bef3fae6250607337306e95440b8a472638476f Mon Sep 17 00:00:00 2001 From: Hyunseung Date: Sun, 17 Dec 2023 02:19:57 +0900 Subject: [PATCH] chore: add `exports` field to package.json (#1864) Add an `exports` field to resolve a Vite development warning. The `package.json#svelte` entry field is deprecated and will eventually no longer be used. --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package.json b/package.json index e55a4b080d..7a445caf03 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,13 @@ "license": "Apache-2.0", "description": "Svelte implementation of the Carbon Design System", "svelte": "./src/index.js", + "exports": { + ".": { + "svelte": "./src/index.js" + }, + "./css/*": "./css/*", + "./src/*": "./src/*" + }, "main": "./lib/index.js", "module": "./lib/index.mjs", "types": "./types/index.d.ts",