vite-plugin-ts
Advanced tools
Comparing version 1.1.0 to 1.1.2
@@ -0,1 +1,14 @@ | ||
## [1.1.2](https://github.com/vitejs/vite/compare/plugin-vue-jsx@1.1.1...plugin-vue-jsx@1.1.2) (2021-02-24) | ||
## [1.1.1](https://github.com/vitejs/vite/compare/plugin-vue-jsx@1.1.0...plugin-vue-jsx@1.1.1) (2021-02-24) | ||
### Bug Fixes | ||
* **plugin-vue-jsx:** do not read babel configuration ([#2181](https://github.com/vitejs/vite/issues/2181)) ([8f0dc25](https://github.com/vitejs/vite/commit/8f0dc25e943ff490eefa0ed3663205a14e8eed9e)) | ||
# [1.1.0](https://github.com/vitejs/vite/compare/plugin-vue-jsx@1.0.3...plugin-vue-jsx@1.1.0) (2021-02-09) | ||
@@ -2,0 +15,0 @@ |
19
index.js
@@ -40,3 +40,3 @@ const fs = require('fs') | ||
return { | ||
name: 'vue-jsx', | ||
name: 'ts', | ||
@@ -102,3 +102,15 @@ config(config) { | ||
}) | ||
if (diagnostics?.[0]) throw new Error(diagnostics[0].messageText) | ||
const diagnostic = diagnostics?.[0] | ||
if (diagnostic) { | ||
const { formatDiagnostic, sys } = require('typescript') | ||
const e = new Error( | ||
formatDiagnostic(diagnostic, { | ||
getCanonicalFileName: f => f, | ||
getCurrentDirectory: () => sys.getCurrentDirectory(), | ||
getNewLine: () => sys.newLine | ||
}) | ||
) | ||
e.loc = diagnostic.start | ||
throw e | ||
} | ||
code = outputText | ||
@@ -115,3 +127,4 @@ } | ||
sourceMaps: needSourceMap, | ||
sourceFileName: id | ||
sourceFileName: id, | ||
configFile: false | ||
}) | ||
@@ -118,0 +131,0 @@ |
{ | ||
"name": "vite-plugin-ts", | ||
"version": "1.1.0", | ||
"version": "1.1.2", | ||
"license": "MIT", | ||
@@ -38,3 +38,3 @@ "author": "Evan You", | ||
"@babel/plugin-syntax-import-meta": "^7.10.4", | ||
"@vue/babel-plugin-jsx": "^1.0.1", | ||
"@vue/babel-plugin-jsx": "^1.0.3", | ||
"hash-sum": "^2.0.0", | ||
@@ -41,0 +41,0 @@ "typescript": "^4.1.3" |
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
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
14024
273
Updated@vue/babel-plugin-jsx@^1.0.3