Environment
20.18.1
Reproduction
Jiti import resolves with a .default and then the JSON, currently it does not return that.
Describe the bug
When defining the preset and then having it resolve using directory path it returns an object like:
{
default: {
clean: true,
declaration: true,
sourcemap: true,
rollup: { emitCJS: true, inlineDependencies: true, esbuild: [Object] }
}
}
Additional context
I was upgrading clack and we use definePreset() as a base, then I tried running build so I changed the code locally within node modules, and this worked.
https://github.com/bombshell-dev/clack - Upgraded to v3 and it errored out.
Logs
No response
Environment
20.18.1
Reproduction
Jiti import resolves with a .default and then the JSON, currently it does not return that.
Describe the bug
When defining the preset and then having it resolve using directory path it returns an object like:
Additional context
I was upgrading clack and we use definePreset() as a base, then I tried running build so I changed the code locally within node modules, and this worked.
https://github.com/bombshell-dev/clack - Upgraded to v3 and it errored out.
Logs
No response