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