vite-plugin-ts
Advanced tools
Comparing version 1.3.0 to 1.3.2-1
@@ -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 { |
21
index.js
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13495
294
1
Updated@babel/core@^7.16.5
Updated@rollup/pluginutils@^4.1.2