Skip to content

Conversation

Wyatex
Copy link

@Wyatex Wyatex commented Jun 13, 2025

feat: support auto infer entries, #4

fix: resolve directory separator issue on Windows
If forward slashes / are not used consistently, bundling on Windows (e.g., src\util.ts) may fail because \u is treated as a special character.

fix: read package.json fail on Windows
The line await readJSON(join(pkgDir, "package.json")).catch(() => ({})); fails to correctly read package.json on Windows, preventing Rolldown from properly excluding dependencies. This results in an [UNRESOLVED_IMPORT] error during bundling.

@Wyatex Wyatex changed the title chore: support uto infer entries chore: support auto infer entries Jun 13, 2025
@Wyatex
Copy link
Author

Wyatex commented Jun 15, 2025

Alright, then I'll remove the CJS bundling and try replacing jiti with 'pkg-types' 'readPackageJSON'.

@zsilbi zsilbi mentioned this pull request Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants