update esm extensions to mjs

This commit is contained in:
Robert Soriano
2022-10-30 13:24:39 -07:00
parent 72755315a5
commit c040db4308
3 changed files with 19 additions and 13 deletions

View File

@@ -7,4 +7,10 @@ export default defineConfig({
clean: true,
external: ['#app'],
dts: true,
// @ts-expect-error: Missing type
outExtension({ format }) {
return {
js: format === 'esm' ? '.mjs' : `.${format}`,
}
},
})