diff --git a/docs/renderers.md b/docs/renderers.md index aaaab0913..f3601c7c2 100644 --- a/docs/renderers.md +++ b/docs/renderers.md @@ -100,7 +100,7 @@ export default { server: './server.js', // relative path to the server entrypoint snowpackPlugin: '@snowpack/plugin-xxx', // optional, the name of a snowpack plugin to inject snowpackPluginOptions: { example: true }, // optional, any options to be forwarded to the snowpack plugin - knownEntrypoint: ['framework'] // optional, entrypoint modules that will be used by compiled source + knownEntrypoint: ['framework'], // optional, entrypoint modules that will be used by compiled source }; ``` diff --git a/packages/astro/src/config_manager.ts b/packages/astro/src/config_manager.ts index c4d1db90c..2d8d384ee 100644 --- a/packages/astro/src/config_manager.ts +++ b/packages/astro/src/config_manager.ts @@ -97,7 +97,7 @@ export class ConfigManager { snowpackPlugin, client: path.join(name, raw.client), server: path.join(name, raw.server), - knownEntrypoints: raw.knownEntrypoints + knownEntrypoints: raw.knownEntrypoints, }; }); diff --git a/packages/astro/src/runtime.ts b/packages/astro/src/runtime.ts index e4e7f4d16..9b9629dc2 100644 --- a/packages/astro/src/runtime.ts +++ b/packages/astro/src/runtime.ts @@ -346,9 +346,9 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO // Make sure that Snowpack builds our renderer plugins const rendererInstances = await configManager.buildRendererInstances(); const knownEntrypoints: string[] = []; - for(const renderer of rendererInstances) { + for (const renderer of rendererInstances) { knownEntrypoints.push(renderer.server, renderer.client); - if(renderer.knownEntrypoints) { + if (renderer.knownEntrypoints) { knownEntrypoints.push(...renderer.knownEntrypoints); } } diff --git a/packages/renderers/renderer-preact/index.js b/packages/renderers/renderer-preact/index.js index 5602442e6..84d2021d1 100644 --- a/packages/renderers/renderer-preact/index.js +++ b/packages/renderers/renderer-preact/index.js @@ -2,5 +2,5 @@ export default { name: '@astrojs/renderer-preact', client: './client', server: './server', - knownEntrypoints: ['preact', 'preact-render-to-string'] + knownEntrypoints: ['preact', 'preact-render-to-string'], }; diff --git a/packages/renderers/renderer-react/index.js b/packages/renderers/renderer-react/index.js index 430e01c3a..e47cf5d7d 100644 --- a/packages/renderers/renderer-react/index.js +++ b/packages/renderers/renderer-react/index.js @@ -2,5 +2,5 @@ export default { name: '@astrojs/renderer-react', client: './client', server: './server', - knownEntrypoints: ['react', 'react-dom/server'] + knownEntrypoints: ['react', 'react-dom/server'], }; diff --git a/packages/renderers/renderer-vue/index.js b/packages/renderers/renderer-vue/index.js index e3f31fc8e..206bae9f3 100644 --- a/packages/renderers/renderer-vue/index.js +++ b/packages/renderers/renderer-vue/index.js @@ -3,5 +3,5 @@ export default { snowpackPlugin: '@snowpack/plugin-vue', client: './client', server: './server', - knownEntrypoints: ['vue'] + knownEntrypoints: ['vue'], };