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

fis3-parser-typescript-x

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis3-parser-typescript-x

A parser plugin for fis3 to compile typescript(ts) file.

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

fis3-parser-typescript

typescript parser for fis3

INSTALL

npm install -g fis3-parser-typescript

USEAGE

fis.match('**.ts', {
	parser: fis.plugin('typescript', {
			// options
		}),
	rExt: '.js'
});

注意

如果你的 fis 版本小于 3.2.2 请加以下配置。

fis.set('project.fileType.text', 'ts,tsx');

常用配置说明

  • jsx 默认为 2, 解析 <xml> 为对应的 react 语句。如果设置 1, 则保留。

  • showNotices 默认为 false, 如果要提示所有提示信息,请开启。

  • module 默认为 1.

    • 1: commonjs
    • 2: amd
    • 3: umd
    • 4: system
  • target 默认为 0, es3.

    • 0: es3
    • 1: es5
    • 2: es6
  • sourceMap 默认为 false 配置是否输出 sourcemap

PS:Fork出来,解决了无法加载@types/xxx的问题,由于没有单元测试,还不能保证对其他功能没有影响

Keywords

FAQs

Package last updated on 15 Jun 2020

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