Skip to content

Commit

Permalink
chore: fix typos (unjs#61)
Browse files Browse the repository at this point in the history
* chore: typo

* fix: vscode eslint error report
  • Loading branch information
tangdaoyuan committed Apr 26, 2022
1 parent 6792fee commit 9126459
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
@@ -1,2 +1,5 @@
dist
test/fixtures/error-*
renovate.json
package.json
tsconfig.json
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -66,7 +66,7 @@ Enable debug to see which files are transpiled

- Type: Boolean | String
- Default: `true`
- Environment Vriable: `JITI_CACHE`
- Environment Variable: `JITI_CACHE`

Use transpile cache

Expand All @@ -76,7 +76,7 @@ If set to `true` will use `node_modules/.cache/jiti` (if exists) or `{TMP_DIR}/n

- Type: Boolean | String
- Default: `false`
- Environment Vriable: `JITI_ESM_RESOLVE`
- Environment Variable: `JITI_ESM_RESOLVE`

Using esm resolution algorithm to support `import` condition.

Expand All @@ -91,7 +91,7 @@ Transform function. See [src/babel](./src/babel.ts) for more details

- Type: Boolean
- Default `false`
- Environment Vriable: `JITI_SOURCE_MAPS`
- Environment Variable: `JITI_SOURCE_MAPS`

Add inline source map to transformed source for better debugging.

Expand Down
4 changes: 2 additions & 2 deletions src/jiti.ts
Expand Up @@ -16,7 +16,7 @@ import { TransformOptions, JITIOptions } from './types'

const _EnvDebug = destr(process.env.JITI_DEBUG)
const _EnvCache = destr(process.env.JITI_CACHE)
const _EnvESMReolve = destr(process.env.JITI_ESM_RESOLVE)
const _EnvESMResolve = destr(process.env.JITI_ESM_RESOLVE)
const _EnvRequireCache = destr(process.env.JITI_REQUIRE_CACHE)
const _EnvSourceMaps = destr(process.env.JITI_SOURCE_MAPS)

Expand All @@ -28,7 +28,7 @@ const defaults: JITIOptions = {
requireCache: _EnvRequireCache !== undefined ? !!_EnvRequireCache : true,
sourceMaps: _EnvSourceMaps !== undefined ? !!_EnvSourceMaps : false,
interopDefault: false,
esmResolve: _EnvESMReolve || false,
esmResolve: _EnvESMResolve || false,
cacheVersion: '6',
legacy: lt(process.version || '0.0.0', '14.0.0'),
extensions: ['.js', '.mjs', '.cjs', '.ts']
Expand Down

0 comments on commit 9126459

Please sign in to comment.