Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vuedx/compiler-tsx

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuedx/compiler-tsx

Converts .vue file to .tsx for typechecking and intellisense

  • 0.8.1-next-1666207395.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7K
increased by14.22%
Maintainers
1
Weekly downloads
 
Created
Source

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

More info

Signature:

export declare function compile(
  source: string,
  options: CompileOptions,
): Omit<CompileOutput, 'map'> & {
  map: RawSourceMap
}
ParameterTypeDescription
sourcestring-
optionsCompileOptions-

compileWithDecodedSourceMap

More info

Signature:

export declare function compileWithDecodedSourceMap(
  source: string,
  options: CompileOptions,
): CompileOutput
ParameterTypeDescription
sourcestring-
optionsCompileOptions-

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.

Keywords

FAQs

Package last updated on 19 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc