ouput file
hzhoup opened this issue · comments
package.json 有配置 "type": "module"
build.config.js
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: ['src/index'],
clean: true,
declaration: true,
rollup: {
emitCJS: true
}
})
main
和 module
字段写反了,请忽略...修正后表现一样
Hi. sorry the question is unclear please reopen with reproduction