Skip to content

Commit

Permalink
fix: vite plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPotatoMan committed Apr 3, 2024
1 parent 8d99729 commit 54fd347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function MSOfficeAddin(params: MSOfficeAddinConfig): Plugin {

if (manifest) {
res.setHeader('content-type', 'text/xml')
return res.end(manifest)
return res.end(manifest.content)
}
}

Expand All @@ -64,7 +64,7 @@ export default function MSOfficeAddin(params: MSOfficeAddinConfig): Plugin {
for (const entry of manifests) {
this.emitFile({
type: 'asset',
fileName: entry.route,
fileName: entry.route.slice(1),
source: entry.content,
})
}
Expand Down

0 comments on commit 54fd347

Please sign in to comment.