Skip to content

Commit

Permalink
chore: fix typo (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Talljack committed Dec 25, 2021
1 parent cc91403 commit 612e959
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Expand Up @@ -372,7 +372,7 @@ tsup --help

### error: No matching export in "xxx.ts" for import "xxx"

This usualy happens when you have `emitDecoratorMetadata` enabled in your tsconfig.json, in this mode we use [SWC](https://swc.rc) to transpile decorators to JavaScript so exported types will be eliminated, that's why esbuild won't be able to find corresponding exports. You can fix this by changing your import statement from `import { SomeType }` to `import { type SomeType }` or `import type { SomeType }`.
This usually happens when you have `emitDecoratorMetadata` enabled in your tsconfig.json, in this mode we use [SWC](https://swc.rc) to transpile decorators to JavaScript so exported types will be eliminated, that's why esbuild won't be able to find corresponding exports. You can fix this by changing your import statement from `import { SomeType }` to `import { type SomeType }` or `import type { SomeType }`.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/cli-main.ts
Expand Up @@ -67,7 +67,7 @@ export async function main(options: Options = {}) {
})
.option(
'--inlineDynamicImports',
'Create a single bundle that inlines dynamic imports'
'Create a single bundle that inline dynamic imports'
)
.option('--replaceNodeEnv', 'Replace process.env.NODE_ENV')
.option('--no-splitting', 'Disable code splitting')
Expand Down
2 changes: 1 addition & 1 deletion src/rollup.ts
Expand Up @@ -96,7 +96,7 @@ const getRollupConfig = async (

if (dtsOptions.resolve) {
tsResolveOptions = {}
// Only resolve speicifc types when `dts.resolve` is an array
// Only resolve specific types when `dts.resolve` is an array
if (Array.isArray(dtsOptions.resolve)) {
tsResolveOptions.resolveOnly = dtsOptions.resolve
}
Expand Down

0 comments on commit 612e959

Please sign in to comment.