antfu-collective / local-pkg

Get information on local packages.
MIT License
144 stars 15 forks source link

feat!: unify the `importModule` behavior of cjs and esm #10

Closed chizukicn closed 9 months ago

chizukicn commented 9 months ago

Description

When I migrated this library to unbuild, I found that the behavior of importModule was inconsistent under cjs and esm, so can the two be unified?

This PR also adds the dependency of mlly and migrates tsup to unbuild.

Linked Issues

Additional context

antfu commented 9 months ago

Seems good. Let's try it.