@volar/vue-language-core
Advanced tools
Comparing version 1.0.19 to 1.0.20
import type * as embedded from '@volar/language-core'; | ||
import { VueLanguagePlugin, VueCompilerOptions } from './types'; | ||
import { VueCompilerOptions } from './types'; | ||
import type * as ts from 'typescript/lib/tsserverlibrary'; | ||
export declare function createLanguageModules(ts: typeof import('typescript/lib/tsserverlibrary'), rootDir: string, compilerOptions: ts.CompilerOptions, _vueCompilerOptions: VueCompilerOptions, extraPlugins?: VueLanguagePlugin[]): embedded.LanguageModule[]; | ||
export declare function createLanguageModules(ts: typeof import('typescript/lib/tsserverlibrary'), compilerOptions: ts.CompilerOptions, _vueCompilerOptions: VueCompilerOptions): embedded.LanguageModule[]; |
@@ -8,6 +8,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ts_1 = require("./utils/ts"); | ||
function createLanguageModules(ts, rootDir, compilerOptions, _vueCompilerOptions, extraPlugins = []) { | ||
function createLanguageModules(ts, compilerOptions, _vueCompilerOptions) { | ||
var _a, _b; | ||
const vueCompilerOptions = (0, ts_1.resolveVueCompilerOptions)(_vueCompilerOptions); | ||
const vueLanguagePlugin = (0, plugins_1.getDefaultVueLanguagePlugins)(ts, rootDir, compilerOptions, _vueCompilerOptions, extraPlugins); | ||
const vueLanguagePlugin = (0, plugins_1.getDefaultVueLanguagePlugins)(ts, compilerOptions, _vueCompilerOptions); | ||
// from https://github.com/johnsoncodehk/volar/pull/1543 | ||
@@ -14,0 +14,0 @@ if (!(ts.__VLS_pitched_resolveModuleNames)) { |
import type * as ts from 'typescript/lib/tsserverlibrary'; | ||
import { VueLanguagePlugin } from './types'; | ||
import { VueCompilerOptions } from './types'; | ||
import * as CompilerDOM from '@vue/compiler-dom'; | ||
export declare function getDefaultVueLanguagePlugins(ts: typeof import('typescript/lib/tsserverlibrary'), rootDir: string, compilerOptions: ts.CompilerOptions, _vueCompilerOptions: VueCompilerOptions, extraPlugins?: VueLanguagePlugin[]): { | ||
export declare function getDefaultVueLanguagePlugins(ts: typeof import('typescript/lib/tsserverlibrary'), compilerOptions: ts.CompilerOptions, _vueCompilerOptions: VueCompilerOptions): { | ||
name?: string | undefined; | ||
@@ -7,0 +6,0 @@ version: 1; |
@@ -15,3 +15,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
const CompilerVue2 = require("./utils/vue2TemplateCompiler"); | ||
function getDefaultVueLanguagePlugins(ts, rootDir, compilerOptions, _vueCompilerOptions, extraPlugins = []) { | ||
function getDefaultVueLanguagePlugins(ts, compilerOptions, _vueCompilerOptions) { | ||
const _plugins = [ | ||
@@ -27,3 +27,2 @@ useVueFilePlugin, | ||
vue_tsx_1.default, | ||
...extraPlugins, | ||
]; | ||
@@ -35,3 +34,3 @@ const pluginPaths = new Map(); | ||
try { | ||
const importPath = require.resolve(pluginPath, { paths: [rootDir] }); | ||
const importPath = require.resolve(pluginPath); | ||
const plugin = require(importPath); | ||
@@ -38,0 +37,0 @@ pluginPaths.set(_plugins.length, pluginPath); |
@@ -7,3 +7,3 @@ import * as embedded from '@volar/language-core'; | ||
export type { SFCParseResult } from '@vue/compiler-sfc'; | ||
export type LanguageServiceHost = embedded.LanguageServiceHost & { | ||
export type VueLanguageServiceHost = embedded.LanguageServiceHost & { | ||
getVueCompilationSettings(): VueCompilerOptions; | ||
@@ -10,0 +10,0 @@ }; |
{ | ||
"name": "@volar/vue-language-core", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"main": "out/index.js", | ||
@@ -16,4 +16,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/language-core": "1.0.19", | ||
"@volar/source-map": "1.0.19", | ||
"@volar/language-core": "1.0.20", | ||
"@volar/source-map": "1.0.20", | ||
"@vue/compiler-dom": "^3.2.45", | ||
@@ -29,3 +29,3 @@ "@vue/compiler-sfc": "^3.2.45", | ||
}, | ||
"gitHead": "02267fe83a5567b1cae7025e834cf084c8248546" | ||
"gitHead": "e00f068e812677791c93efe9cf20995764350ec6" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
236526
5142
+ Added@volar/language-core@1.0.20(transitive)
+ Added@volar/source-map@1.0.20(transitive)
- Removed@volar/language-core@1.0.19(transitive)
- Removed@volar/source-map@1.0.19(transitive)
Updated@volar/language-core@1.0.20
Updated@volar/source-map@1.0.20