Add RGC to Vite's optimizeDeps
This commit is contained in:
parent
25807eab45
commit
deb0e7f532
2 changed files with 10 additions and 7 deletions
|
|
@ -25,9 +25,9 @@
|
|||
let content = $derived(data.content);
|
||||
</script>
|
||||
|
||||
{#if isReutersDotcom(page.url)}
|
||||
<!-- {#if isReutersDotcom(page.url)}
|
||||
<AdScripts />
|
||||
{/if}
|
||||
{/if} -->
|
||||
|
||||
<SEO
|
||||
baseUrl={import.meta.env.BASE_URL}
|
||||
|
|
@ -43,21 +43,21 @@
|
|||
authors={pkg?.reuters?.graphic?.authors}
|
||||
/>
|
||||
|
||||
<Theme base="light">
|
||||
{#if !isReutersApp(page.url)}
|
||||
<Theme base="dark">
|
||||
<!-- {#if !isReutersApp(page.url)}
|
||||
{#if isReutersDotcom(page.url)}
|
||||
<LeaderboardAd />
|
||||
{:else if isReutersDev(page.url)}
|
||||
<LogBlock level="info" message="An ad will appear here on dotcom" />
|
||||
{/if}
|
||||
<SiteHeader />
|
||||
{/if}
|
||||
{/if} -->
|
||||
|
||||
<App {content} />
|
||||
|
||||
{#if !isReutersApp(page.url)}
|
||||
<!-- {#if !isReutersApp(page.url)}
|
||||
<SiteFooter />
|
||||
{/if}
|
||||
{/if} -->
|
||||
</Theme>
|
||||
|
||||
<!-- Only visible in dev! -->
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@ import { defineConfig } from 'vite';
|
|||
|
||||
export default defineConfig({
|
||||
build: { target: 'es2015', sourcemap: true },
|
||||
optimizeDeps: {
|
||||
include: ['@reuters-graphics/graphics-components'],
|
||||
},
|
||||
server: {
|
||||
open: true,
|
||||
port: 3000,
|
||||
|
|
|
|||
Loading…
Reference in a new issue