diff --git a/email-signature.html b/email-signature.html index 08c6dde..a2a5ebc 100644 --- a/email-signature.html +++ b/email-signature.html @@ -8,7 +8,7 @@ Michal Vanko - + Software Architect and Consultant - + - (warning.code === 'CIRCULAR_DEPENDENCY' && - /[/\\]@sapper[/\\]/.test(warning.message)) || + (warning.code === 'MISSING_EXPORT' && /'preload'/.test(warning.message)) || + (warning.code === 'CIRCULAR_DEPENDENCY' && /[/\\]@sapper[/\\]/.test(warning.message)) || onwarn(warning) const dedupe = (importee) => importee === 'svelte' || importee.startsWith('svelte/') export default { client: { - input: config.client.input(), + input: config.client.input().replace(/\.js$/, ".ts"), output: config.client.output(), plugins: [ replace({ @@ -33,9 +35,16 @@ export default { dev, hydratable: true, emitCss: true, + // Disabled automatic image compression // preprocess: { // ...image(), // }, + preprocess: sveltePreprocess({ + sourceMap: dev, + defaults: { + script: 'typescript', + }, + }), }), resolve({ browser: true, @@ -78,7 +87,7 @@ export default { }, server: { - input: config.server.input(), + input: config.server.input().server.replace(/\.js$/, ".ts"), output: config.server.output(), plugins: [ replace({ @@ -88,6 +97,13 @@ export default { svelte({ generate: 'ssr', dev, + hydratable: true, + preprocess: sveltePreprocess({ + sourceMap: dev, + defaults: { + script: 'typescript', + } + }), // preprocess: { // ...image(), // }, @@ -96,6 +112,7 @@ export default { dedupe, }), commonjs(), + typescript({ sourceMap: dev}), svg(), ], external: Object.keys(pkg.dependencies).concat( diff --git a/src/client.js b/src/client.ts similarity index 100% rename from src/client.js rename to src/client.ts diff --git a/src/components/blog/article-footer.svelte b/src/components/blog/article-footer.svelte index 4da81de..951f012 100644 --- a/src/components/blog/article-footer.svelte +++ b/src/components/blog/article-footer.svelte @@ -1,7 +1,8 @@ -