We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9fb267 + 6521c22 commit 6a45f1aCopy full SHA for 6a45f1a
package.json
@@ -6,6 +6,10 @@
6
"svelte": "src/index.js",
7
"module": "dist/index.mjs",
8
"main": "dist/index.js",
9
+ "exports": {
10
+ "require": "./dist/index.js",
11
+ "import": "./dist/index.mjs"
12
+ },
13
"scripts": {
14
"tailwind:watch": "chokidar 'docs/tailwind*.*' -c 'npm run tailwind:build'",
15
"tailwind:build": "tailwind build docs/tailwind.css -c docs/tailwind.config.js -o docs/build/global.css",
src/index.js
@@ -1,4 +1,2 @@
1
-import SvelteToast from './SvelteToast.svelte'
2
-import { toast } from './stores'
3
-
4
-export { SvelteToast, toast }
+export { default as SvelteToast } from './SvelteToast.svelte'
+export { toast } from './stores'
0 commit comments