···11+const c = 1
22+export default c
33+export const d = 2
+15
test/core/test/module.test.ts
···11+import { expect, it } from 'vitest'
22+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
33+// @ts-expect-error
44+import { a, b } from '../src/module-cjs'
55+import c, { d } from '../src/module-esm'
66+77+it('should work when using cjs module', () => {
88+ expect(a).toBe(1)
99+ expect(b).toBe(2)
1010+})
1111+1212+it('should work when using esm module', () => {
1313+ expect(c).toBe(1)
1414+ expect(d).toBe(2)
1515+})