beyonk-group / gdpr-cookie-consent-banner

A GDPR compliant cookie consent banner implementation
MIT License
248 stars 42 forks source link

Add SvelteKit compatibility #28

Closed james-camilleri closed 2 years ago

james-camilleri commented 2 years ago

The package source has been converted to use ESM syntax. This has had no impact on the dist code (except a few cosmetic changes which I imagine are due to different Svelte versions handling the compilation).

The change includes:

Code has been linted, and the tests all run successfully. I've also packaged the module and tested it on my own project, and it seems to work well with the caveat I've mentioned in the README.

antony commented 2 years ago

Hi @james-camilleri - thank you!

antony commented 2 years ago

Hey - I swapped out the non esm lib - no workarounds required now!

james-camilleri commented 2 years ago

Super, thank you!