Reputation: 749
What is the best way to add a JS file into Svelte app?
I will add custom javascript functions for authentication with Auth0 and I am trying to do the easiest way using Svelte architecture. Any suggestions?
I have done authentication with Netlify identity but I am now willing to do that with Auth0.
Upvotes: 0
Views: 727
Reputation: 29605
With import
:
<script>
import thing from './your-thing.js';
</script>
Upvotes: 4