[ci] yarn format
This commit is contained in:
parent
180dfcf2fc
commit
76195ba404
3 changed files with 8 additions and 7 deletions
|
@ -265,7 +265,8 @@ export function vitePluginNewBuild(input: Set<string>, internals: BuildInternals
|
|||
|
||||
config(config, options) {
|
||||
const extra: Partial<UserConfig> = {};
|
||||
const noExternal = [], external = [];
|
||||
const noExternal = [],
|
||||
external = [];
|
||||
if (options.command === 'build' && config.build?.ssr) {
|
||||
noExternal.push('astro');
|
||||
external.push('shiki');
|
||||
|
@ -273,7 +274,8 @@ export function vitePluginNewBuild(input: Set<string>, internals: BuildInternals
|
|||
|
||||
// @ts-ignore
|
||||
extra.ssr = {
|
||||
external, noExternal
|
||||
external,
|
||||
noExternal,
|
||||
};
|
||||
return extra;
|
||||
},
|
||||
|
|
|
@ -5,14 +5,13 @@ import { loadFixture } from './test-utils.js';
|
|||
describe('Code component inside static build', () => {
|
||||
let fixture;
|
||||
|
||||
|
||||
before(async () => {
|
||||
fixture = await loadFixture({
|
||||
projectRoot: './fixtures/static-build-code-component/',
|
||||
renderers: [],
|
||||
buildOptions: {
|
||||
experimentalStaticBuild: true,
|
||||
}
|
||||
},
|
||||
});
|
||||
await fixture.build();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue