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

vite-plugin-dom-jsx

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-dom-jsx - npm Package Compare versions

Comparing version 0.0.1-beta.1 to 0.0.1-beta.2

2

index.d.ts
import { Plugin } from 'vite'
declare function createPlugin(options?: {pragma: string, include: RegExp[]}): Plugin
declare function createPlugin(options?: {pragma: string, include: RegExp[], importCode: string}): Plugin
export default createPlugin

@@ -13,7 +13,9 @@ const babel = require('@babel/core')

function domJsxPlugin(options = {
pragma: 'h',
include: [/.\.tsx$/],
}) {
function domJsxPlugin(options = {}) {
let needSourceMap = true
options = Object.assign({}, {
pragma: 'h',
include: [/.\.tsx$/],
importCode: `import {h} from 'tsx-dom';\n`
}, options)

@@ -66,3 +68,3 @@ return {

return {
code: result.code,
code: importCode + result.code,
map: result.map

@@ -69,0 +71,0 @@ }

{
"name": "vite-plugin-dom-jsx",
"version": "0.0.1-beta.1",
"version": "0.0.1-beta.2",
"description": "a vite plugin which support tsx-dom library",

@@ -5,0 +5,0 @@ "main": "index.js",

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