{"_id":"@mariozechner/jiti","_rev":"4-ab7598cbdd16412511cc0adadac80366","name":"@mariozechner/jiti","dist-tags":{"latest":"2.6.5"},"versions":{"2.6.2":{"name":"@mariozechner/jiti","version":"2.6.2","license":"MIT","_id":"@mariozechner/jiti@2.6.2","maintainers":[{"name":"badlogic","email":"mario@badlogicgames.com"}],"homepage":"https://github.com/badlogic/jiti#readme","bugs":{"url":"https://github.com/badlogic/jiti/issues"},"bin":{"jiti":"lib/jiti-cli.mjs"},"dist":{"shasum":"dbadeffda45538e60433dbf81ce40ac4aa7529d1","tarball":"https://registry.npmjs.org/@mariozechner/jiti/-/jiti-2.6.2.tgz","fileCount":15,"integrity":"sha512-CcFowm/fDWcEMH/F47DQcdawpLQb0nw+WR+hZOv8mgAeACFJxE9uo3cXjUk/5Cl3j23t/oxvtxxUtlBCUIGeQg==","signatures":[{"sig":"MEUCIQC/4N7VmXAeEU5X7jQAUC80IHZbU0wUvWt5/SVP/YarggIgKT6iU1OH/84bVmXTwDR62HMvumjvlGJjSHbpv6v6BTI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1661700},"main":"./lib/jiti.cjs","type":"module","types":"./lib/jiti.d.cts","module":"./lib/jiti.mjs","exports":{".":{"import":{"types":"./lib/jiti.d.mts","default":"./lib/jiti.mjs"},"require":{"types":"./lib/jiti.d.cts","default":"./lib/jiti.cjs"}},"./native":{"types":"./lib/jiti.d.mts","import":"./lib/jiti-native.mjs"},"./register":{"types":"./lib/jiti-register.d.mts","import":"./lib/jiti-register.mjs"},"./package.json":"./package.json"},"gitHead":"ad402d33c4739da658751c391e680297c28662af","scripts":{"build":"npm run clean && npx rspack","clean":"rm -rf dist","prepack":"npm run build"},"_npmUser":{"name":"badlogic","email":"mario@badlogicgames.com"},"repository":{"url":"git+https://github.com/badlogic/jiti.git","type":"git"},"_npmVersion":"11.6.2","description":"Runtime typescript and ESM support for Node.js (fork with virtualModules support)","directories":{},"_nodeVersion":"25.2.1","dependencies":{"std-env":"^3.10.0","yoctocolors":"^2.1.2"},"typesVersions":{"*":{"native":["./lib/jiti.d.mts"],"register":["./lib/jiti-register.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"mlly":"^1.8.0","acorn":"^8.15.0","pathe":"^2.0.3","std-env":"^3.9.0","ts-loader":"^9.5.4","typescript":"^5.9.3","@babel/core":"^7.28.4","@rspack/cli":"^1.5.8","@types/node":"^24.6.1","yoctocolors":"^2.1.2","@babel/types":"^7.28.4","@rspack/core":"^1.5.8","estree-walker":"^3.0.3","@babel/template":"^7.27.2","@babel/traverse":"^7.28.4","@types/babel__core":"^7.20.5","escape-string-regexp":"^5.0.0","terser-webpack-plugin":"^5.3.14","@types/babel__template":"^7.4.4","@types/babel__traverse":"^7.28.0","@babel/plugin-syntax-jsx":"^7.27.1","@babel/preset-typescript":"^7.27.1","@babel/helper-plugin-utils":"^7.27.1","@babel/helper-simple-access":"^7.27.1","@babel/helper-module-imports":"^7.27.1","@babel/helper-module-transforms":"^7.28.3","babel-plugin-parameter-decorator":"^1.0.16","@babel/plugin-proposal-decorators":"^7.28.0","@babel/plugin-transform-react-jsx":"^7.27.1","@types/babel__helper-plugin-utils":"^7.10.3","@babel/plugin-transform-typescript":"^7.28.0","@types/babel__helper-module-imports":"^7.18.3","@babel/plugin-syntax-class-properties":"^7.12.13","@babel/plugin-syntax-import-assertions":"^7.27.1","@babel/plugin-transform-export-namespace-from":"^7.27.1"},"_npmOperationalInternal":{"tmp":"tmp/jiti_2.6.2_1768275551019_0.2713712723252444","host":"s3://npm-registry-packages-npm-production"}},"2.6.3":{"name":"@mariozechner/jiti","version":"2.6.3","license":"MIT","_id":"@mariozechner/jiti@2.6.3","maintainers":[{"name":"badlogic","email":"mario@badlogicgames.com"}],"homepage":"https://github.com/badlogic/jiti#readme","bugs":{"url":"https://github.com/badlogic/jiti/issues"},"bin":{"jiti":"lib/jiti-cli.mjs"},"dist":{"shasum":"c25c10f41354d726f8527e4eba7a2ab6945157d8","tarball":"https://registry.npmjs.org/@mariozechner/jiti/-/jiti-2.6.3.tgz","fileCount":15,"integrity":"sha512-SbREdjTLFyIjHZhBUWmLmue1MUkj5Jm1zVn7DRIaRKb3kn69Rg1Fo3Zf7nDtZiO/nGiKklA2qtRjKkMyOCgkVA==","signatures":[{"sig":"MEQCIAw6m/4BDsWjNDcjTnMVDZzID45dAB0Bcw4ggDGe2wDDAiABUGqKGzdwK0nLhRzwjdfmKyYbGGg/cDjqGbkOvOM48w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1661890},"main":"./lib/jiti.cjs","type":"module","types":"./lib/jiti.d.cts","module":"./lib/jiti.mjs","exports":{".":{"import":{"types":"./lib/jiti.d.mts","default":"./lib/jiti.mjs"},"require":{"types":"./lib/jiti.d.cts","default":"./lib/jiti.cjs"}},"./native":{"types":"./lib/jiti.d.mts","import":"./lib/jiti-native.mjs"},"./register":{"types":"./lib/jiti-register.d.mts","import":"./lib/jiti-register.mjs"},"./package.json":"./package.json"},"gitHead":"c23928ec53036f945d6b445fe94bde93b97c6c70","scripts":{"build":"npm run clean && npx rspack","clean":"rm -rf dist","prepack":"npm run build"},"_npmUser":{"name":"badlogic","email":"mario@badlogicgames.com"},"repository":{"url":"git+https://github.com/badlogic/jiti.git","type":"git"},"_npmVersion":"11.6.2","description":"Runtime typescript and ESM support for Node.js (fork with virtualModules support)","directories":{},"_nodeVersion":"25.2.1","dependencies":{"std-env":"^3.10.0","yoctocolors":"^2.1.2"},"typesVersions":{"*":{"native":["./lib/jiti.d.mts"],"register":["./lib/jiti-register.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"mlly":"^1.8.0","acorn":"^8.15.0","pathe":"^2.0.3","std-env":"^3.9.0","ts-loader":"^9.5.4","typescript":"^5.9.3","@babel/core":"^7.28.4","@rspack/cli":"^1.5.8","@types/node":"^24.6.1","yoctocolors":"^2.1.2","@babel/types":"^7.28.4","@rspack/core":"^1.5.8","estree-walker":"^3.0.3","@babel/template":"^7.27.2","@babel/traverse":"^7.28.4","@types/babel__core":"^7.20.5","escape-string-regexp":"^5.0.0","terser-webpack-plugin":"^5.3.14","@types/babel__template":"^7.4.4","@types/babel__traverse":"^7.28.0","@babel/plugin-syntax-jsx":"^7.27.1","@babel/preset-typescript":"^7.27.1","@babel/helper-plugin-utils":"^7.27.1","@babel/helper-simple-access":"^7.27.1","@babel/helper-module-imports":"^7.27.1","@babel/helper-module-transforms":"^7.28.3","babel-plugin-parameter-decorator":"^1.0.16","@babel/plugin-proposal-decorators":"^7.28.0","@babel/plugin-transform-react-jsx":"^7.27.1","@types/babel__helper-plugin-utils":"^7.10.3","@babel/plugin-transform-typescript":"^7.28.0","@types/babel__helper-module-imports":"^7.18.3","@babel/plugin-syntax-class-properties":"^7.12.13","@babel/plugin-syntax-import-assertions":"^7.27.1","@babel/plugin-transform-export-namespace-from":"^7.27.1"},"_npmOperationalInternal":{"tmp":"tmp/jiti_2.6.3_1768334479840_0.9892048170167227","host":"s3://npm-registry-packages-npm-production"}},"2.6.4":{"name":"@mariozechner/jiti","version":"2.6.4","license":"MIT","_id":"@mariozechner/jiti@2.6.4","maintainers":[{"name":"badlogic","email":"mario@badlogicgames.com"}],"homepage":"https://github.com/badlogic/jiti#readme","bugs":{"url":"https://github.com/badlogic/jiti/issues"},"bin":{"jiti":"lib/jiti-cli.mjs"},"dist":{"shasum":"867fc95dcbac3fd8e30b13dbb4d5da187519017b","tarball":"https://registry.npmjs.org/@mariozechner/jiti/-/jiti-2.6.4.tgz","fileCount":15,"integrity":"sha512-wj54cmHxclU89h5ne0Gg0k825vsWmWYz4sxQ4p/vpQTLwIwEBV5vtheI48p7jCm41nAv6YwvMuYbGVUbvJ0Z4g==","signatures":[{"sig":"MEUCIQCT1apYjOTnrw3GpA3b0bIo0GpZTYfTo2HVZqrF09QwiwIgYV9KafWTXMtBrURiDtY/f6+MoZF1m68FtuNOZvl8PK0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1661865},"main":"./lib/jiti.cjs","type":"module","types":"./lib/jiti.d.cts","module":"./lib/jiti.mjs","exports":{".":{"import":{"types":"./lib/jiti.d.mts","default":"./lib/jiti.mjs"},"require":{"types":"./lib/jiti.d.cts","default":"./lib/jiti.cjs"}},"./native":{"types":"./lib/jiti.d.mts","import":"./lib/jiti-native.mjs"},"./register":{"types":"./lib/jiti-register.d.mts","import":"./lib/jiti-register.mjs"},"./package.json":"./package.json"},"gitHead":"b2278c8f9fde9e9e991180e39b53b98a1af808af","scripts":{"build":"npm run clean && npx rspack","clean":"rm -rf dist","prepack":"npm run build"},"_npmUser":{"name":"badlogic","email":"mario@badlogicgames.com"},"repository":{"url":"git+https://github.com/badlogic/jiti.git","type":"git"},"_npmVersion":"11.6.2","description":"Runtime typescript and ESM support for Node.js (fork with virtualModules support)","directories":{},"_nodeVersion":"25.2.1","dependencies":{"std-env":"^3.10.0","yoctocolors":"^2.1.2"},"typesVersions":{"*":{"native":["./lib/jiti.d.mts"],"register":["./lib/jiti-register.d.mts"]}},"_hasShrinkwrap":false,"devDependencies":{"mlly":"^1.8.0","acorn":"^8.15.0","pathe":"^2.0.3","std-env":"^3.9.0","ts-loader":"^9.5.4","typescript":"^5.9.3","@babel/core":"^7.28.4","@rspack/cli":"^1.5.8","@types/node":"^24.6.1","yoctocolors":"^2.1.2","@babel/types":"^7.28.4","@rspack/core":"^1.5.8","estree-walker":"^3.0.3","@babel/template":"^7.27.2","@babel/traverse":"^7.28.4","@types/babel__core":"^7.20.5","escape-string-regexp":"^5.0.0","terser-webpack-plugin":"^5.3.14","@types/babel__template":"^7.4.4","@types/babel__traverse":"^7.28.0","@babel/plugin-syntax-jsx":"^7.27.1","@babel/preset-typescript":"^7.27.1","@babel/helper-plugin-utils":"^7.27.1","@babel/helper-simple-access":"^7.27.1","@babel/helper-module-imports":"^7.27.1","@babel/helper-module-transforms":"^7.28.3","babel-plugin-parameter-decorator":"^1.0.16","@babel/plugin-proposal-decorators":"^7.28.0","@babel/plugin-transform-react-jsx":"^7.27.1","@types/babel__helper-plugin-utils":"^7.10.3","@babel/plugin-transform-typescript":"^7.28.0","@types/babel__helper-module-imports":"^7.18.3","@babel/plugin-syntax-class-properties":"^7.12.13","@babel/plugin-syntax-import-assertions":"^7.27.1","@babel/plugin-transform-export-namespace-from":"^7.27.1"},"_npmOperationalInternal":{"tmp":"tmp/jiti_2.6.4_1768334711246_0.29374260308624023","host":"s3://npm-registry-packages-npm-production"}},"2.6.5":{"name":"@mariozechner/jiti","version":"2.6.5","description":"Runtime typescript and ESM support for Node.js (fork with virtualModules support)","repository":{"type":"git","url":"git+https://github.com/badlogic/jiti.git"},"license":"MIT","type":"module","exports":{".":{"import":{"types":"./lib/jiti.d.mts","default":"./lib/jiti.mjs"},"require":{"types":"./lib/jiti.d.cts","default":"./lib/jiti.cjs"}},"./register":{"types":"./lib/jiti-register.d.mts","import":"./lib/jiti-register.mjs"},"./native":{"types":"./lib/jiti.d.mts","import":"./lib/jiti-native.mjs"},"./package.json":"./package.json"},"main":"./lib/jiti.cjs","module":"./lib/jiti.mjs","types":"./lib/jiti.d.cts","typesVersions":{"*":{"register":["./lib/jiti-register.d.mts"],"native":["./lib/jiti.d.mts"]}},"bin":{"jiti":"lib/jiti-cli.mjs"},"scripts":{"build":"npm run clean && npx rspack","clean":"rm -rf dist","prepack":"npm run build"},"devDependencies":{"@babel/core":"^7.28.4","@babel/helper-module-imports":"^7.27.1","@babel/helper-module-transforms":"^7.28.3","@babel/helper-plugin-utils":"^7.27.1","@babel/helper-simple-access":"^7.27.1","@babel/plugin-proposal-decorators":"^7.28.0","@babel/plugin-syntax-class-properties":"^7.12.13","@babel/plugin-syntax-import-assertions":"^7.27.1","@babel/plugin-syntax-jsx":"^7.27.1","@babel/plugin-transform-export-namespace-from":"^7.27.1","@babel/plugin-transform-react-jsx":"^7.27.1","@babel/plugin-transform-typescript":"^7.28.0","@babel/preset-typescript":"^7.27.1","@babel/template":"^7.27.2","@babel/traverse":"^7.28.4","@babel/types":"^7.28.4","@rspack/cli":"^1.5.8","@rspack/core":"^1.5.8","@types/babel__core":"^7.20.5","@types/babel__helper-module-imports":"^7.18.3","@types/babel__helper-plugin-utils":"^7.10.3","@types/babel__template":"^7.4.4","@types/babel__traverse":"^7.28.0","@types/node":"^24.6.1","acorn":"^8.15.0","babel-plugin-parameter-decorator":"^1.0.16","escape-string-regexp":"^5.0.0","estree-walker":"^3.0.3","mlly":"^1.8.0","pathe":"^2.0.3","std-env":"^3.9.0","terser-webpack-plugin":"^5.3.14","yoctocolors":"^2.1.2","ts-loader":"^9.5.4","typescript":"^5.9.3"},"dependencies":{"std-env":"^3.10.0","yoctocolors":"^2.1.2"},"gitHead":"d45d2c2175f04d760bee36a12dfdb24cd8a18eb3","_id":"@mariozechner/jiti@2.6.5","bugs":{"url":"https://github.com/badlogic/jiti/issues"},"homepage":"https://github.com/badlogic/jiti#readme","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-faGUlTcXka5l7rv0lP3K3vGW/ejRuOS24RR2aSFWREUQqzjgdsuWNo/IiPqL3kWRGt6Ahl2+qcDAwtdeWeuGUw==","shasum":"87b226980cdc1ba453dcbd53db1688c6d6c8366f","tarball":"https://registry.npmjs.org/@mariozechner/jiti/-/jiti-2.6.5.tgz","fileCount":15,"unpackedSize":1661803,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDgTJCcvXc7J8gJ9n9GXLBjhOi5IA6JfA/AOLaziVNkWAiBGNKwqHwIsYeey1At6bYoq+GwdPLGBSzuDoZTwHZskAA=="}]},"_npmUser":{"name":"badlogic","email":"mario@badlogicgames.com"},"directories":{},"maintainers":[{"name":"badlogic","email":"mario@badlogicgames.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jiti_2.6.5_1768335048552_0.19530382854451256"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-13T03:39:10.956Z","modified":"2026-01-13T20:10:49.007Z","2.6.2":"2026-01-13T03:39:11.203Z","2.6.3":"2026-01-13T20:01:20.020Z","2.6.4":"2026-01-13T20:05:11.447Z","2.6.5":"2026-01-13T20:10:48.794Z"},"bugs":{"url":"https://github.com/badlogic/jiti/issues"},"license":"MIT","homepage":"https://github.com/badlogic/jiti#readme","repository":{"type":"git","url":"git+https://github.com/badlogic/jiti.git"},"description":"Runtime typescript and ESM support for Node.js (fork with virtualModules support)","maintainers":[{"name":"badlogic","email":"mario@badlogicgames.com"}],"readme":"# jiti\n\n\n\n[![npm version](https://img.shields.io/npm/v/jiti?color=F0DB4F)](https://npmjs.com/package/jiti)\n[![npm downloads](https://img.shields.io/npm/dm/jiti?color=F0DB4F)](https://npmjs.com/package/jiti)\n[![bundle size](https://img.shields.io/bundlephobia/minzip/jiti?color=F0DB4F)](https://bundlephobia.com/package/jiti)\n\n\n\n> This is the active development branch. Check out [jiti/v1](https://github.com/unjs/jiti/tree/v1) for legacy v1 docs and code.\n\n## 🌟 Used in\n\n[Docusaurus](https://docusaurus.io/), [ESLint](https://github.com/eslint/eslint), [FormKit](https://formkit.com/), [Histoire](https://histoire.dev/), [Knip](https://knip.dev/), [Nitro](https://nitro.unjs.io/), [Nuxt](https://nuxt.com/), [PostCSS loader](https://github.com/webpack-contrib/postcss-loader), [Rsbuild](https://rsbuild.dev/), [Size Limit](https://github.com/ai/size-limit), [Slidev](https://sli.dev/), [Tailwindcss](https://tailwindcss.com/), [Tokenami](https://github.com/tokenami/tokenami), [UnoCSS](https://unocss.dev/), [WXT](https://wxt.dev/), [Winglang](https://www.winglang.io/), [Graphql code generator](https://the-guild.dev/graphql/codegen), [Lingui](https://lingui.dev/), [Scaffdog](https://scaff.dog/), [Storybook](https://storybook.js.org), [...UnJS ecosystem](https://unjs.io/), [...60M+ npm monthly downloads](https://npm.chart.dev/jiti), [...6M+ public repositories](https://github.com/unjs/jiti/network/dependents).\n\n## ✅ Features\n\n- Seamless TypeScript and ESM syntax support for Node.js\n- Seamless interoperability between ESM and CommonJS\n- Asynchronous API to replace `import()`\n- Synchronous API to replace `require()` (deprecated)\n- Super slim and zero dependency\n- Custom resolve aliases\n- Smart syntax detection to avoid extra transforms\n- Node.js native `require.cache` integration\n- Filesystem transpile with hard disk caches\n- ESM Loader support\n- JSX support (opt-in)\n\n> [!IMPORTANT]\n> To enhance compatibility, jiti `>=2.1` enabled [`interopDefault`](#interopdefault) using a new Proxy method. If you migrated to `2.0.0` earlier, this might have caused behavior changes. In case of any issues during the upgrade, please [report](https://github.com/unjs/jiti/issues) so we can investigate to solve them. 🙏🏼\n\n## 💡 Usage\n\n### CLI\n\nYou can use `jiti` CLI to quickly run any script with TypeScript and native ESM support!\n\n```bash\nnpx jiti ./index.ts\n```\n\n### Programmatic\n\nInitialize a jiti instance:\n\n```js\n// ESM\nimport { createJiti } from \"jiti\";\nconst jiti = createJiti(import.meta.url);\n\n// CommonJS (deprecated)\nconst { createJiti } = require(\"jiti\");\nconst jiti = createJiti(__filename);\n```\n\nImport (async) and resolve with ESM compatibility:\n\n```js\n// jiti.import(id) is similar to import(id)\nconst mod = await jiti.import(\"./path/to/file.ts\");\n\n// jiti.esmResolve(id) is similar to import.meta.resolve(id)\nconst resolvedPath = jiti.esmResolve(\"./src\");\n```\n\nIf you need the default export of module, you can use `jiti.import(id, { default: true })` as shortcut to `mod?.default ?? mod`.\n\n```js\n// shortcut to mod?.default ?? mod\nconst modDefault = await jiti.import(\"./path/to/file.ts\", { default: true });\n```\n\nCommonJS (sync & deprecated):\n\n```js\n// jiti() is similar to require(id)\nconst mod = jiti(\"./path/to/file.ts\");\n\n// jiti.resolve() is similar to require.resolve(id)\nconst resolvedPath = jiti.resolve(\"./src\");\n```\n\nYou can also pass options as the second argument:\n\n```js\nconst jiti = createJiti(import.meta.url, { debug: true });\n```\n\n### Register global ESM loader\n\nYou can globally register jiti using [global hooks](https://nodejs.org/api/module.html#initialize). (Important: Requires Node.js > 20)\n\n```js\nimport \"jiti/register\";\n```\n\nOr:\n\n```bash\nnode --import jiti/register index.ts\n```\n\n## 🎈 `jiti/native`\n\nYou can alias `jiti` to `jiti/native` to directly depend on runtime's [`import.meta.resolve`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta/resolve) and dynamic [`import()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) support. This allows easing up the ecosystem transition to runtime native support by giving the same API of jiti.\n\n## ⚙️ Options\n\n### `debug`\n\n- Type: Boolean\n- Default: `false`\n- Environment variable: `JITI_DEBUG`\n\nEnable verbose logging. You can use `JITI_DEBUG=1 ` to enable it.\n\n### `fsCache`\n\n- Type: Boolean | String\n- Default: `true`\n- Environment variable: `JITI_FS_CACHE`\n\nFilesystem source cache (enabled by default)\n\nBy default (when is `true`), jiti uses `node_modules/.cache/jiti` (if exists) or `{TMP_DIR}/jiti`.\n\n**Note:** It is recommended that this option be enabled for better performance.\n\n### `rebuildFsCache`\n\n- Type: Boolean\n- Default: `false`\n- Environment variable: `JITI_REBUILD_FS_CACHE`\n\nRebuild filesystem source cache created by `fsCache`.\n\n### `moduleCache`\n\n- Type: String\n- Default: `true`\n- Environment variable: `JITI_MODULE_CACHE`\n\nRuntime module cache (enabled by default).\n\nDisabling allows editing code and importing the same module multiple times.\n\nWhen enabled, jiti integrates with Node.js native CommonJS cache-store.\n\n### `transform`\n\n- Type: Function\n- Default: Babel (lazy loaded)\n\nTransform function. See [src/babel](./src/babel.ts) for more details\n\n### `sourceMaps`\n\n- Type: Boolean\n- Default `false`\n- Environment variable: `JITI_SOURCE_MAPS`\n\nAdd inline source map to transformed source for better debugging.\n\n### `interopDefault`\n\n- Type: Boolean\n- Default: `true`\n- Environment variable: `JITI_INTEROP_DEFAULT`\n\nJiti combines module exports with the `default` export using an internal Proxy to improve compatibility with mixed CJS/ESM usage. You can check the current implementation [here](https://github.com/unjs/jiti/blob/main/src/utils.ts#L105).\n\n### `alias`\n\n- Type: Object\n- Default: -\n- Environment variable: `JITI_ALIAS`\n\nYou can also pass an object to the environment variable for inline config. Example: `JITI_ALIAS='{\"~/*\": \"./src/*\"}' jiti ...`.\n\nCustom alias map used to resolve IDs.\n\n### `nativeModules`\n\n- Type: Array\n- Default: ['typescript']\n- Environment variable: `JITI_NATIVE_MODULES`\n\nList of modules (within `node_modules`) to always use native `require()` for them.\n\n### `transformModules`\n\n- Type: Array\n- Default: []\n- Environment variable: `JITI_TRANSFORM_MODULES`\n\nList of modules (within `node_modules`) to transform them regardless of syntax.\n\n### `importMeta`\n\nParent module's [`import.meta`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta) context to use for ESM resolution. (only used for `jiti/native` import).\n\n### `tryNative`\n\n- Type: Boolean\n- Default: Enabled if bun is detected\n- Environment variable: `JITI_TRY_NATIVE`\n\nTry to use native require and import without jiti transformations first.\n\n### `jsx`\n\n- Type: Boolean | {options}\n- Default: `false`\n- Environment Variable: `JITI_JSX`\n\nEnable JSX support using [`@babel/plugin-transform-react-jsx`](https://babeljs.io/docs/babel-plugin-transform-react-jsx).\n\nSee [`test/fixtures/jsx`](./test/fixtures/jsx) for framework integration examples.\n\n## Development\n\n- Clone this repository\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies using `pnpm install`\n- Run `pnpm dev`\n- Run `pnpm jiti ./test/path/to/file.ts`\n\n## License\n\n\n\nPublished under the [MIT](https://github.com/unjs/jiti/blob/main/LICENSE) license.\nMade by [@pi0](https://github.com/pi0) and [community](https://github.com/unjs/jiti/graphs/contributors) 💛\n

\n\n\n\n\n\n\n\n","readmeFilename":"README.md"}