fix: add newline after cjsInterop

closes #1022
This commit is contained in:
三咲智子 Kevin Deng 2023-10-16 20:49:32 +08:00
parent 1dbd86b734
commit b749a274be
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
2 changed files with 4 additions and 6 deletions

View File

@ -18,7 +18,7 @@ export const cjsInterop = (): Plugin => {
}
return {
code: code + '\nmodule.exports = exports.default',
code: code + '\nmodule.exports = exports.default;\n',
map: info.map,
}
},

View File

@ -1,9 +1,7 @@
import { UserConfig } from 'vitest'
import { defineConfig } from 'vitest/config'
const config: { test: UserConfig } = {
export default defineConfig({
test: {
testTimeout: 50000,
},
}
export default config
})