[ci] yarn format
This commit is contained in:
parent
0abd251cda
commit
32fdb383c7
6 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
};
|
||||
```
|
||||
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'],
|
||||
};
|
||||
|
|
|
@ -2,5 +2,5 @@ export default {
|
|||
name: '@astrojs/renderer-react',
|
||||
client: './client',
|
||||
server: './server',
|
||||
knownEntrypoints: ['react', 'react-dom/server']
|
||||
knownEntrypoints: ['react', 'react-dom/server'],
|
||||
};
|
||||
|
|
|
@ -3,5 +3,5 @@ export default {
|
|||
snowpackPlugin: '@snowpack/plugin-vue',
|
||||
client: './client',
|
||||
server: './server',
|
||||
knownEntrypoints: ['vue']
|
||||
knownEntrypoints: ['vue'],
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue