Skip to content

Commit

Permalink
fix: add newline after cjsInterop
Browse files Browse the repository at this point in the history
closes #1022
  • Loading branch information
sxzz committed Oct 16, 2023
1 parent 1dbd86b commit b749a27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/plugins/cjs-interop.ts
Expand Up @@ -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,
}
},
Expand Down
8 changes: 3 additions & 5 deletions vitest.config.ts
@@ -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
})

0 comments on commit b749a27

Please sign in to comment.