mirror of
https://github.com/TECHNOFAB11/svelte-oidc.git
synced 2025-12-11 23:50:06 +01:00
feat: oidc-client.js based Svelte OidcComponent
follows a pattern similar to @dopry/svelte-auth0, but uses the more standards compliant oidc-client.js library.
This commit is contained in:
commit
4fd62abe31
25 changed files with 7069 additions and 0 deletions
32
rollup.config.js
Normal file
32
rollup.config.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import { terser } from 'rollup-plugin-terser';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import pkg from './package.json';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import svelte from 'rollup-plugin-svelte';
|
||||
|
||||
const name = pkg.name
|
||||
.replace(/^(@\S+\/)?(svelte-)?(\S+)/, '$3')
|
||||
.replace(/^\w/, (m) => m.toUpperCase())
|
||||
.replace(/-\w/g, (m) => m[1].toUpperCase());
|
||||
|
||||
export default {
|
||||
input: 'src/components/components.module.js',
|
||||
output: [
|
||||
{ file: pkg.module, format: 'es', sourcemap: true, name },
|
||||
{ file: pkg.main, format: 'umd', sourcemap: true, name }
|
||||
],
|
||||
plugins: [
|
||||
svelte(),
|
||||
resolve({
|
||||
browser: true,
|
||||
dedupe: (importee) =>
|
||||
importee === 'svelte' || importee.startsWith('svelte/'),
|
||||
}),
|
||||
commonjs({
|
||||
include: ['node_modules/**'],
|
||||
}),
|
||||
terser(),
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue