Skip to content

Commit 4f23d63

Browse files
committed
improve comment
1 parent b3da4ec commit 4f23d63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/VueProgram.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ class VueProgram {
196196
}
197197

198198
private static resolveScriptBlock(content: string): ResolvedScript {
199-
// We need to import vue-template-compiler dinamically because cannot include it as direct dependency.
200-
// The reason is that it should not mismatch the versions with user-installed vue-template-compiler
201-
// while it is an optional dependency for fork-ts-checker-webpack-plugin.
202-
// So here we load the compiler and throws when it is not in the user's dependencies.
199+
// We need to import vue-template-compiler lazily because it is cannot be included it
200+
// as direct dependency because it is an optional dependency of fork-ts-checker-webpack-plugin.
201+
// Since its version must not mismatch with user-installed vue-template-compiler,
202+
// we should let the users install vue-template-compiler by themselves.
203203
let parser: typeof vueCompiler;
204204
try {
205205
// tslint:disable-next-line

0 commit comments

Comments
 (0)