Pooya Parsa
Pooya Parsa
Do you think would it be possible to magically making jiti+vite working together out of the box without custom user/framework plugins?
Can we detect vite environment in a reliable way or having an export condition by default in vite? This way i was thinking jiti instead can change it's internal behavior...
With jiti v2, we have `jiti/native` subpath which can be aliased to bypass. For unbuild, we might also introduce new options that avoids jiti in stub.
Nuxt module builder uses as-is ts files for runtime and module entry does not goes through bundler/vite. Please make an issue in there if you have further questions @jojotechs (and...
[here](https://github.com/jojotechs/grey-parrot-i18n/blob/05ccdf25081884d7eff6076b75c1b090bf1e928d/packages/sdk/js/vue/build.config.ts#L5) you should use mkdist builder (instead of making one rollup bundle) which is similar to how nuxt module builder handles `src/runtime`. As it is out of jiti/this issue scope,...
Thanks for reporting. Minimal reproduction: https://stackblitz.com/edit/stackblitz-starters-3fj5rs?file=package.json It seems transformation is not happening because the file has an explicit `.cjs` extension and also no ESM syntax (dynamic import is valid in...
You need an explicit jiti instance in place of `await import()`. Also consider that it is only happening for stub mode when module is not transformed yet that uses implicit...
Yep, I got it. Regardless I think it would be always much much safer if in [this line](https://github.com/nuxt-community/sentry-module/blob/977a74e7b28f360116514258adcf8cbcec2b5be1/src/options.ts#L243-L245) you expect `resolvedPath` pointing to a possibly Typescript entry, to use an...
If nuxt uses MJS/Native ESM, i think this issue is irrelevant no? Because mainly we want typescript support from what i understand and it is possible when jiti transform happens....
This should work in ESM context (PR welcome for docs!) ```js import initJiti from 'jiti' const jiti = initJiti(import.meta.url) console.log(jiti.resolve('.')) ```