Update package.json exports to include package.json. Why package.json
needs to export itself, I cannot say but it fixes the following Svelte
rollup.js plugin warning:
[rollup-plugin-svelte] The following packages did not export their package.json file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.
browser-fs-access
I've verified locally using npm link that the warning no longer occurs
with this change in my Svelte project. I believe the otherwise
preexisting exports behavior is preserved.
Update package.json exports to include package.json. Why package.json needs to export itself, I cannot say but it fixes the following Svelte rollup.js plugin warning:
[rollup-plugin-svelte] The following packages did not export their
package.json
file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.I've verified locally using
npm link
that the warning no longer occurs with this change in my Svelte project. I believe the otherwise preexisting exports behavior is preserved.References: