[ci] format
This commit is contained in:
parent
8c04ff1f0b
commit
c757427fca
2 changed files with 10 additions and 8 deletions
|
@ -45,14 +45,16 @@ const _args = ${adapter.args ? JSON.stringify(adapter.args) : 'undefined'};
|
|||
${
|
||||
adapter.exports
|
||||
? `const _exports = adapter.createExports(_manifest, _args);
|
||||
${adapter.exports.map((name) => {
|
||||
if(name === 'default') {
|
||||
return `const _default = _exports['default'];
|
||||
${adapter.exports
|
||||
.map((name) => {
|
||||
if (name === 'default') {
|
||||
return `const _default = _exports['default'];
|
||||
export { _default as default };`;
|
||||
} else {
|
||||
return `export const ${name} = _exports['${name}'];`
|
||||
}
|
||||
}).join('\n')}
|
||||
} else {
|
||||
return `export const ${name} = _exports['${name}'];`;
|
||||
}
|
||||
})
|
||||
.join('\n')}
|
||||
`
|
||||
: ''
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ export const createExports = (manifest: SSRManifest) => {
|
|||
await setResponse(res, await app.render(request));
|
||||
};
|
||||
|
||||
return { 'default': handler };
|
||||
return { default: handler };
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue