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

vite-plugin-ts

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-ts - npm Package Compare versions

Comparing version 1.3.0 to 1.3.2-1

6

index.d.ts

@@ -1,4 +0,4 @@

import { Plugin } from 'vite'
import { VueJSXPluginOptions } from '@vue/babel-plugin-jsx'
import { FilterPattern } from '@rollup/pluginutils'
import type { Plugin } from 'vite'
import type { VueJSXPluginOptions } from '@vue/babel-plugin-jsx'
import type { FilterPattern } from '@rollup/pluginutils'

@@ -5,0 +5,0 @@ declare interface FilterOptions {

@@ -52,10 +52,17 @@ const fs = require('fs')

config(config) {
const optionsApi = config.define
? config.define.__VUE_OPTIONS_API__
: undefined
const devTools = config.define
? config.define.__VUE_PROD_DEVTOOLS__
: undefined
return {
// jsx and tsx? are handled by this plugin
// disable esbuild
esbuild: false,
esbuild: {
include: /\.esbuild\./
},
define: {
__VUE_OPTIONS_API__: true,
__VUE_PROD_DEVTOOLS__: false,
...config.define
__VUE_OPTIONS_API__: optionsApi != null ? optionsApi : true,
__VUE_PROD_DEVTOOLS__: devTools != null ? devTools : false
}

@@ -86,4 +93,4 @@ }

const {
include,
exclude,
include = /\.(jsx|tsx?)$/,
exclude = /\.esbuild\./,
babelPlugins = [],

@@ -93,3 +100,3 @@ ...babelPluginOptions

const filter = createFilter(include || /\.(jsx|tsx?)$/, exclude)
const filter = createFilter(include, exclude)

@@ -96,0 +103,0 @@ if (filter(id)) {

{
"name": "vite-plugin-ts",
"version": "1.3.0",
"version": "1.3.2-1",
"license": "MIT",

@@ -33,5 +33,5 @@ "author": "Evan You",

"dependencies": {
"@babel/core": "^7.16.0",
"@babel/core": "^7.16.5",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@rollup/pluginutils": "^4.1.1",
"@rollup/pluginutils": "^4.1.2",
"@vue/babel-plugin-jsx": "^1.1.1",

@@ -43,4 +43,5 @@ "hash-sum": "^2.0.0",

"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . --lerna-package plugin-vue-jsx",
"release": "node ../../scripts/release.cjs --skipBuild"
}
"release": "ts-node ../../scripts/release.ts --skipBuild"
},
"readme": "# vite-plugin-ts [![npm](https://img.shields.io/npm/v/vite-plugin-ts.svg)](https://npmjs.com/package/vite-plugin-ts)\n\nCompiles TS(X) files with the official TypeScript compiler, to avoid various differences and provide `decorator` and `emitMetadata` support.\n\nThis plugin is modified from the official [@vitejs/plugin-vue-jsx](https://npmjs.com/package/@vitejs/plugin-vue-jsx). For JSX options, see [the original document](https://github.com/vitejs/vite/blob/main/packages/plugin-vue-jsx/README.md#options)\n\nNote: This plugin **conflicts** with the original @vitejs/plugin-vue-jsx plugin, and provides everything the original plugin supports ( including jsx support ). DO NOT INSTALL THEM BOTH!\n\nAuthor: Evan You, modified with Carter Li\n\nI will keep tracking the changes of original plugin, if I can remember...\n"
}
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