Skip to content

Commit

Permalink
Update languagePlugins.cts
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve authored Jun 22, 2024
1 parent eef66f4 commit eb4e7b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ exports.getLanguagePlugins = (
? vue.createParsedCommandLine(ts, ts.sys, configFilePath.replace(windowsPathReg, '/'))
.vueOptions
: vue.resolveVueCompilerOptions({})
const writeFile = options.host.writeFile.bind(options.host)
options.host.writeFile = (fileName, contents, ...args) => {
const writeFile = options.host!.writeFile.bind(options.host)
options.host!.writeFile = (fileName, contents, ...args) => {
return writeFile(fileName, removeEmitGlobalTypes(contents), ...args)
}
const vueLanguagePlugin = vue.createVueLanguagePlugin<string>(
Expand Down

0 comments on commit eb4e7b9

Please sign in to comment.