The current Typescript build results in issues with Vite, see #7 as the bundle uses ES6 import syntax and setting the package.jsontype to module causes the Must use import to load ES Module error to be thrown.
Using a bundler like microbundle, which generates CJS, UMD and ESM outputs, will hopefully mitigate the issues and allow SvelteKitAuth to be installed in SvelteKit projects with ease.
Overview
The current Typescript build results in issues with Vite, see #7 as the bundle uses ES6 import syntax and setting the
package.json
type
tomodule
causes theMust use import to load ES Module
error to be thrown.Using a bundler like microbundle, which generates CJS, UMD and ESM outputs, will hopefully mitigate the issues and allow SvelteKitAuth to be installed in SvelteKit projects with ease.