- Delete old Vite+Svelte frontend - Initialize new SvelteKit project with TypeScript - Configure Tailwind CSS v4 + DaisyUI - Implement JWT authentication with auto-refresh - Create login page with form validation (Zod) - Add protected route guards - Update Docker configuration for single-stage build - Add E2E tests with Playwright (6/11 passing) - Fix Svelte 5 reactivity with $state() runes Known issues: - 5 E2E tests failing (timing/async issues) - Token refresh implementation needs debugging - Validation error display timing
57 lines
1002 B
JavaScript
57 lines
1002 B
JavaScript
import json from '@rollup/plugin-json'
|
|
import terser from '@rollup/plugin-terser'
|
|
|
|
export default [
|
|
{
|
|
input: 'min/index.js',
|
|
plugins: [
|
|
json(),
|
|
terser()
|
|
],
|
|
output: {
|
|
format: 'umd',
|
|
name: 'libphonenumber',
|
|
file: 'bundle/libphonenumber-min.js',
|
|
sourcemap: true
|
|
}
|
|
},
|
|
{
|
|
input: 'mobile/index.js',
|
|
plugins: [
|
|
json(),
|
|
terser()
|
|
],
|
|
output: {
|
|
format: 'umd',
|
|
name: 'libphonenumber',
|
|
file: 'bundle/libphonenumber-mobile.js',
|
|
sourcemap: true
|
|
}
|
|
},
|
|
{
|
|
input: 'max/index.js',
|
|
plugins: [
|
|
json(),
|
|
terser()
|
|
],
|
|
output: {
|
|
format: 'umd',
|
|
name: 'libphonenumber',
|
|
file: 'bundle/libphonenumber-max.js',
|
|
sourcemap: true
|
|
}
|
|
},
|
|
{
|
|
input: 'index.es6',
|
|
plugins: [
|
|
json(),
|
|
terser()
|
|
],
|
|
output: {
|
|
format: 'umd',
|
|
name: 'libphonenumber',
|
|
file: 'bundle/libphonenumber-js.min.js',
|
|
sourcemap: true
|
|
}
|
|
}
|
|
] |