From d05f74d802ce524074d9181195fdc4356e08f7e8 Mon Sep 17 00:00:00 2001 From: shadow-light <42055707+shadow-light@users.noreply.github.com> Date: Sat, 21 Aug 2021 15:45:53 +1000 Subject: [PATCH] fix: Don't import from typescript source files (#125) 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 https://github.com/microsoft/TypeScript/issues/40426 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d4f7192..5462fbf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'