jiti
jiti copied to clipboard
Runtime Typescript and ESM support for Node.js
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pnpm](https://pnpm.io) ([source](https://togithub.com/pnpm/pnpm)) | [`7.3.0` -> `7.9.0`](https://renovatebot.com/diffs/npm/pnpm/7.3.0/7.9.0) |...
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.[View this repository on the Mend.io Web Portal](https://developer.mend.io/github/unjs/jiti). ## Config Migration Needed - [ ]...
This package is used as a dependency with Nuxt. When importing file outside the project root on a windows machine the 'readNearestPackageJSON ' function enters an **infinite loop**. Running the...
for example: - `||=` `??=` We could enable some more babel plugins. **use case**: At the moment, using jiti/unbuild to stub nuxt modules means we can't use this syntax.
It feels like jiti do not support TS grammar like this : `export declare class xxx` DEMO: ```ts // entry.ts export namespace smart_player_namespace { export declare class FeedService {} }...
In jiti v1.12.9 (via nuxt 2.15.8), top-level `await` doesn't seem to be supported, although it is in Node.js v14+. See also https://v8.dev/features/top-level-await When starting my Nuxt app (with top-level `await`...
In contexts where file extension is explicit `.mjs` or closest `package.json` has `type: module` we may use native ESM and for typescript, disable CommonJS transforms. Blocker is, jiti is supposed...
Changing `require` signature in ESM files should be avoided. We can pass [isNativeModule](https://github.com/unjs/jiti/blob/main/src/jiti.ts#L226) to the transformer top avoid CommonJS transform. (Related: #65)
Hello, switching Typescript transpilation to `jiti` in Nuxt 2.15.0 has caused some problems with our code base that have prevented us from upgrading: We are using `class-validator` to validate data...
Basic alias support for integrations need custom alias. We can also introduce `resolveId` for more advanced usecases.