vite-plugin-ts
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -0,1 +1,10 @@ | ||
## [1.1.8](https://github.com/vitejs/vite/compare/plugin-vue-jsx@1.1.7...plugin-vue-jsx@1.1.8) (2021-09-07) | ||
### Bug Fixes | ||
* hmr doesn't work when modifying the code of jsx in sfc ([#4563](https://github.com/vitejs/vite/issues/4563)) ([1012367](https://github.com/vitejs/vite/commit/101236794c5d6d28591302d5552cb1c0ab8f4115)) | ||
## [1.1.7](https://github.com/vitejs/vite/compare/plugin-vue-jsx@1.1.6...plugin-vue-jsx@1.1.7) (2021-07-27) | ||
@@ -2,0 +11,0 @@ |
13
index.js
@@ -104,7 +104,8 @@ const fs = require('fs') | ||
} | ||
const { config, error } = ts.readConfigFile(configPath, (path) => | ||
fs.readFileSync(path, 'utf8') | ||
tsconfig = ts.parseJsonConfigFileContent( | ||
{ extends: './tsconfig.json' }, | ||
ts.sys, | ||
path.dirname(path.resolve(configPath)) | ||
) | ||
if (error) throw new Error(error.messageText) | ||
tsconfig = config | ||
if (!tsconfig.compilerOptions) tsconfig.compilerOptions = {} | ||
Object.assign(tsconfig.compilerOptions, { | ||
@@ -117,3 +118,3 @@ sourceMap: false, | ||
const { outputText, diagnostics } = ts.transpileModule(code, { | ||
compilerOptions: tsconfig.compilerOptions, | ||
compilerOptions: tsconfig.options, | ||
fileName: id, | ||
@@ -237,3 +238,3 @@ reportDiagnostics: true | ||
if (needHmr && !ssr) { | ||
if (needHmr && !ssr && !/\?vue&type=script/.test(id)) { | ||
let code = result.code | ||
@@ -240,0 +241,0 @@ let callbackCode = `` |
{ | ||
"name": "vite-plugin-ts", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Evan You", |
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
17261
286