New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-solid

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-solid - npm Package Compare versions

Comparing version 0.9.1 to 1.0.0

12

dist/cjs/index.js
'use strict';
var solid = require('babel-preset-solid');
var core = require('@babel/core');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var solid__default = /*#__PURE__*/_interopDefaultLegacy(solid);
function solidPlugin(options = {}) {

@@ -45,3 +40,3 @@ let needHmr = false;

async transform(source, id) {
async transform(source, id, ssr) {
if (!/\.[jt]sx/.test(id)) return null;

@@ -51,4 +46,3 @@ let solidOptions;

if (options.ssr) {
// This is a ugly hack that doesn't work really well..
if (globalThis._SOLID_SSR) {
if (ssr) {
solidOptions = {

@@ -73,3 +67,3 @@ generate: 'ssr',

filename: id,
presets: [[solid__default['default'], solidOptions]]
presets: [[require('babel-preset-solid'), solidOptions]]
};

@@ -76,0 +70,0 @@

@@ -1,2 +0,1 @@

import solid from 'babel-preset-solid';
import { transformAsync } from '@babel/core';

@@ -39,3 +38,3 @@

async transform(source, id) {
async transform(source, id, ssr) {
if (!/\.[jt]sx/.test(id)) return null;

@@ -45,4 +44,3 @@ let solidOptions;

if (options.ssr) {
// This is a ugly hack that doesn't work really well..
if (globalThis._SOLID_SSR) {
if (ssr) {
solidOptions = {

@@ -67,3 +65,3 @@ generate: 'ssr',

filename: id,
presets: [[solid, solidOptions]]
presets: [[require('babel-preset-solid'), solidOptions]]
};

@@ -70,0 +68,0 @@

{
"name": "vite-plugin-solid",
"version": "0.9.1",
"version": "1.0.0",
"description": "solid-js integration plugin for vite 2",

@@ -44,3 +44,3 @@ "files": [

"solid-js": "^0.24",
"vite": "^2.0.0-beta.68"
"vite": "^2"
},

@@ -52,12 +52,12 @@ "dependencies": {

"resolve.exports": "^1.0.2",
"solid-js": "^0.24.5",
"vite": "^2.0.0-beta.69"
"solid-js": "^0.24.7",
"vite": "^2.0.0"
},
"devDependencies": {
"@babel/plugin-transform-typescript": "^7.12.16",
"@rollup/plugin-babel": "^5.2.3",
"@rollup/plugin-node-resolve": "^11.1.1",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^11.2.0",
"@skypack/package-check": "^0.2.2",
"@types/babel__core": "^7.1.12",
"@types/node": "^14.14.27",
"@types/node": "^14.14.28",
"prettier": "^2.2.1",

@@ -64,0 +64,0 @@ "rollup": "^2.39.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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