File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
packages/language-core/lib Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change 11import * as path from 'path-browserify' ;
2- import type * as ts from 'typescript' ;
32import type { ScriptRanges } from '../../parsers/scriptRanges' ;
43import type { ScriptSetupRanges } from '../../parsers/scriptSetupRanges' ;
54import type { Code , Sfc , SfcBlock , VueCompilerOptions } from '../../types' ;
@@ -15,14 +14,12 @@ import { generateTemplate } from './template';
1514const exportExpression = `{} as typeof ${ names . _export } ` ;
1615
1716export interface ScriptCodegenOptions {
18- ts : typeof ts ;
1917 vueCompilerOptions : VueCompilerOptions ;
2018 script : Sfc [ 'script' ] ;
2119 scriptSetup : Sfc [ 'scriptSetup' ] ;
2220 fileName : string ;
2321 scriptRanges : ScriptRanges | undefined ;
2422 scriptSetupRanges : ScriptSetupRanges | undefined ;
25- templateStartTagOffset : number | undefined ;
2623 templateCodegen : TemplateCodegenContext & { codes : Code [ ] } | undefined ;
2724 styleCodegen : TemplateCodegenContext & { codes : Code [ ] } | undefined ;
2825 setupExposed : Set < string > ;
Original file line number Diff line number Diff line change @@ -188,12 +188,6 @@ function useCodegen(
188188 } ) ;
189189 } ) ;
190190
191- const getTemplateStartTagOffset = computed ( ( ) => {
192- if ( sfc . template ) {
193- return sfc . template . start - sfc . template . startTagEnd ;
194- }
195- } ) ;
196-
197191 const getSetupExposed = computedSet ( ( ) => {
198192 const allVars = new Set < string > ( ) ;
199193 const scriptSetupRanges = getScriptSetupRanges ( ) ;
@@ -240,7 +234,6 @@ function useCodegen(
240234
241235 const getGeneratedScript = computed ( ( ) => {
242236 return generateScript ( {
243- ts,
244237 vueCompilerOptions : getResolvedOptions ( ) ,
245238 script : sfc . script ,
246239 scriptSetup : sfc . scriptSetup ,
@@ -249,7 +242,6 @@ function useCodegen(
249242 scriptRanges : getScriptRanges ( ) ,
250243 scriptSetupRanges : getScriptSetupRanges ( ) ,
251244 templateCodegen : getGeneratedTemplate ( ) ,
252- templateStartTagOffset : getTemplateStartTagOffset ( ) ,
253245 styleCodegen : getGeneratedStyle ( ) ,
254246 } ) ;
255247 } ) ;
You can’t perform that action at this time.
0 commit comments