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] Hybrid ESM & CJS Builds #32

Closed Dan6erbond closed 3 years ago

Dan6erbond commented 3 years ago

Overview

In response to #26 this PR adds a hybrid ES module and CommonJS build using Rollup's multi-input plugin, and multiple build configurations. The ESM output will rename all files to .esm.js and maps those correctly in the respective package.json files.

Further testing required to see if this resolves issues with ESM in Vite.