@vuedx/compiler-tsx
Converts .vue file to .tsx for typechecking and intellisense
Last updated 3 years ago by znck .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @vuedx/compiler-tsx 
SYNC missed versions from official npm registry.

Compiler TSX

A custom compiler to convert .vue to a TSX representation for type checking and IDE support.

Usage

npm add @vuedx/compiler-tsx

API

compile

<summary>More info</summary>

Signature:

export declare function compile(
  source: string,
  options: CompileOptions,
): Omit<CompileOutput, 'map'> & {
  map: RawSourceMap
}
Parameter Type Description
source string -
options CompileOptions -

compileWithDecodedSourceMap

<summary>More info</summary>

Signature:

export declare function compileWithDecodedSourceMap(
  source: string,
  options: CompileOptions,
): CompileOutput
Parameter Type Description
source string -
options CompileOptions -

Types

CompileOptions

export interface CompileOptions extends TransformOptions {}

CompileOutput

export interface CompileOutput extends TransformedCode {
  descriptor: SFCDescriptor
  errors: Array<CompilerError | SyntaxError>
  template?: RootNode
}

CustomAttributeNode

export interface CustomAttributeNode extends AttributeNode {
  nameLoc: SourceLocation
}

CustomBaseElementNode

export interface CustomBaseElementNode extends BaseElementNode {
  endTagLoc?: SourceLocation
  hoists?: CompoundExpressionNode[]
  startTagLoc: SourceLocation
  tagLoc: SourceLocation
}

CustomNode

export interface CustomNode extends Node {
  scope: Scope
}

Support

This package is part of VueDX project, maintained by Rahul Kadyan. You can ???? sponsor him for continued development of this package and other VueDX tools.

Current Tags

  • 0.7.5-insiders-1630604709.0                                ...           insiders (5 years ago)
  • 0.8.1                                ...           latest (3 years ago)
  • 0.8.2-next-1667939290.0                                ...           next (3 years ago)
  • 0.2.3                                ...           pnpm-temp (6 years ago)

142 Versions

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 122
Last Day 0
Last Week 122
Last Month 0
Dev Dependencies (3)

Copyright 2013 - present © cnpmjs.org | Home |