Dan6erbond / sk-auth

Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!
MIT License
577 stars 70 forks source link

[ENHANCEMENT] Production Build for Use with Vite #10

Closed Dan6erbond closed 3 years ago

Dan6erbond commented 3 years ago

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 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.

Dan6erbond commented 3 years ago

Closed in #11.