diff --git a/packages/integrations/vue/client.js b/packages/integrations/vue/client.js index faf1ac63ae..7e67825df3 100644 --- a/packages/integrations/vue/client.js +++ b/packages/integrations/vue/client.js @@ -1,5 +1,5 @@ import { h, createSSRApp, createApp } from 'vue'; -import { setup } from 'virtual:@astrojs/vue/app' +import { setup } from 'virtual:@astrojs/vue/app'; import StaticHtml from './static-html.js'; export default (element) => diff --git a/packages/integrations/vue/server.js b/packages/integrations/vue/server.js index 831b46a1d7..0b148d2345 100644 --- a/packages/integrations/vue/server.js +++ b/packages/integrations/vue/server.js @@ -1,6 +1,6 @@ import { h, createSSRApp } from 'vue'; import { renderToString } from 'vue/server-renderer'; -import { setup } from 'virtual:@astrojs/vue/app' +import { setup } from 'virtual:@astrojs/vue/app'; import StaticHtml from './static-html.js'; function check(Component) { diff --git a/packages/integrations/vue/src/index.ts b/packages/integrations/vue/src/index.ts index 2af3062bfb..f7cf10fbd5 100644 --- a/packages/integrations/vue/src/index.ts +++ b/packages/integrations/vue/src/index.ts @@ -57,7 +57,7 @@ async function getViteConfiguration(options?: Options): Promise { const config: UserConfig = { optimizeDeps: { include: ['@astrojs/vue/client.js', 'vue'], - exclude: ['@astrojs/vue/server.js', 'virtual:@astrojs/vue/app'] + exclude: ['@astrojs/vue/server.js', 'virtual:@astrojs/vue/app'], }, plugins: [vue(options), virtualAppEntrypoint(options)], ssr: { diff --git a/packages/integrations/vue/test/app-entrypoint.test.js b/packages/integrations/vue/test/app-entrypoint.test.js index 1b53fbd213..0c60818a31 100644 --- a/packages/integrations/vue/test/app-entrypoint.test.js +++ b/packages/integrations/vue/test/app-entrypoint.test.js @@ -8,13 +8,13 @@ describe('App Entrypoint', () => { before(async () => { fixture = await loadFixture({ - root: './fixtures/app-entrypoint/' + root: './fixtures/app-entrypoint/', }); await fixture.build(); }); it('loads during SSR', async () => { - const data = await fixture.readFile('/index.html') + const data = await fixture.readFile('/index.html'); const { document } = parseHTML(data); const bar = document.querySelector('#foo > #bar'); expect(bar).not.to.be.undefined; @@ -22,13 +22,13 @@ describe('App Entrypoint', () => { }); it('setup included in renderer bundle', async () => { - const data = await fixture.readFile('/index.html') + const data = await fixture.readFile('/index.html'); const { document } = parseHTML(data); const island = document.querySelector('astro-island'); const client = island.getAttribute('renderer-url'); expect(client).not.to.be.undefined; const js = await fixture.readFile(client); - expect(js).to.match(/\w+\.component\(\"Bar\"/gm) + expect(js).to.match(/\w+\.component\(\"Bar\"/gm); }); });