tinymce/tinymce-svelte

Add missing exports conditions

laxadev opened this issue · 2 comments

ptrxyz commented

With latest versions of Svelte, this is required and throws nasty warnings all day long.

The fix is super simple, simply add the exports object to the package.json and it's all good:

...
"svelte": "dist/index.js",
  "exports": {
    ".": {
      "types": "./dist/ts/index.d.ts",
      "svelte": "./dist/index.js"
    }
  },
...

edit: added types

ptrxyz commented

Added PR: #52