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.1.7 to 1.1.8

9

CHANGELOG.md

@@ -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",

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