Skip to content

Commit

Permalink
chore: add exports field to package.json (#1864)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hslee2008 authored Dec 16, 2023
1 parent 292881d commit 7bef3fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7bef3fa

Please sign in to comment.