unplugin / unplugin-swc

SWC plugin for Vite and Rollup
MIT License
236 stars 13 forks source link

Broken build in 1.5.0 #142

Closed marklai1998 closed 2 months ago

marklai1998 commented 4 months ago

Describe the bug

in 1.5.0 the esm "export" property points to index.mjs and index.d.mts file, but the build doesn't include it

image

Reproduction

pull latest, pnpm build

System Info

N/A

Used Package Manager

pnpm

Validations

marklai1998 commented 4 months ago

This change broke the build, by switching to type "module" it generate .js(ESM) and .cjs(cjs) instead of .js(cjs) and .mjs(ESM)

https://github.com/unplugin/unplugin-swc/compare/v1.4.5...v1.5.0#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R3