Skip to content

Commit

Permalink
fix: comply with the new export conditions required by `vite-plugin-s…
Browse files Browse the repository at this point in the history
…velte@3`
  • Loading branch information
josdejong committed Dec 20, 2023
1 parent 4bbcaaf commit b2961a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"sideEffects": false,
"license": "ISC",
"exports": {
".": "./index.js",
".": {
"svelte": "./index.js",
"types": "./index.d.ts"
},
"./index.d.ts": "./index.d.ts",
"./index.js": "./index.js",
"./themes/jse-theme-dark.css": "./themes/jse-theme-dark.css",
Expand Down
1 change: 1 addition & 0 deletions tools/createVanillaPackageJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const vanillaPackage = {
browser: './standalone.js',
exports: {
...pkg.exports,
'.': './index.js', // we don't create an object here, see https://github.com/josdejong/svelte-jsoneditor/issues/334
'./index.js.map': './index.js.map',
'./standalone.js': './standalone.js',
'./standalone.js.map': './standalone.js.map'
Expand Down

0 comments on commit b2961a3

Please sign in to comment.