[ci] yarn format

This commit is contained in:
matthewp 2021-06-21 19:35:26 +00:00 committed by GitHub Actions
parent 0abd251cda
commit 32fdb383c7
6 changed files with 7 additions and 7 deletions

View file

@ -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
};
```

View file

@ -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,
};
});

View file

@ -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);
}
}

View file

@ -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'],
};

View file

@ -2,5 +2,5 @@ export default {
name: '@astrojs/renderer-react',
client: './client',
server: './server',
knownEntrypoints: ['react', 'react-dom/server']
knownEntrypoints: ['react', 'react-dom/server'],
};

View file

@ -3,5 +3,5 @@ export default {
snowpackPlugin: '@snowpack/plugin-vue',
client: './client',
server: './server',
knownEntrypoints: ['vue']
knownEntrypoints: ['vue'],
};