Skip to content

Commit

Permalink
fix: Don't import from typescript source files (#125)
Browse files Browse the repository at this point in the history
Importing from typescript source files distributed with a module causes user projects to type check those source files using the tsconfig of the user project rather than that of the module, with stricter settings raising errors that would otherwise go unnoticed.

See microsoft/TypeScript#40426
  • Loading branch information
shadow-light authored Aug 21, 2021
1 parent 32c2bd0 commit d2a9ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TemplateCompileOptions } from '@vue/component-compiler-utils/lib/compileTemplate'
import { TemplateCompileOptions } from '@vue/component-compiler-utils'
import { normalizeComponentCode } from './utils/componentNormalizer'
import { vueHotReloadCode } from './utils/vueHotReload'
import fs from 'fs'
Expand Down

0 comments on commit d2a9ea9

Please sign in to comment.