Socket
Socket
Sign inDemoInstall

esbuild-plugin-solid

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

esbuild-plugin-solid - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

dist/cjs/plugin.js

@@ -34,3 +34,2 @@ var __create = Object.create;

var import_preset_typescript = __toModule(require("@babel/preset-typescript"));
var JSX_RE = /<.+?>/gim;
function solidPlugin() {

@@ -40,7 +39,4 @@ return {

setup(build) {
build.onLoad({ filter: /\.(t|j)sx?$/ }, async (args) => {
build.onLoad({ filter: /\.(t|j)sx$/ }, async (args) => {
const source = await (0, import_promises.readFile)(args.path, { encoding: "utf-8" });
const isJsx = JSX_RE.test(source);
if (!isJsx)
return { contents: source, loader: "ts" };
const { name, ext } = (0, import_path.parse)(args.path);

@@ -47,0 +43,0 @@ const filename = name + ext;

@@ -7,3 +7,2 @@ // src/plugin.ts

import ts from "@babel/preset-typescript";
var JSX_RE = /<.+?>/gim;
function solidPlugin() {

@@ -13,7 +12,4 @@ return {

setup(build) {
build.onLoad({ filter: /\.(t|j)sx?$/ }, async (args) => {
build.onLoad({ filter: /\.(t|j)sx$/ }, async (args) => {
const source = await readFile(args.path, { encoding: "utf-8" });
const isJsx = JSX_RE.test(source);
if (!isJsx)
return { contents: source, loader: "ts" };
const { name, ext } = parse(args.path);

@@ -20,0 +16,0 @@ const filename = name + ext;

import { Plugin } from "esbuild";
export declare function solidPlugin(): Plugin;

16

package.json
{
"name": "esbuild-plugin-solid",
"version": "0.3.0",
"version": "0.3.1",
"description": "Solid's integration for ESBuild",

@@ -33,15 +33,15 @@ "main": "dist/cjs/plugin.js",

"dependencies": {
"@babel/core": "^7.14.6",
"@babel/core": "^7.14.8",
"@babel/preset-typescript": "^7.14.5",
"babel-preset-solid": "^1.0.0",
"esbuild": "^0.12.12",
"solid-js": "^1.0.0"
"babel-preset-solid": "^1.0.6",
"esbuild": "^0.12.17",
"solid-js": "^1.0.7"
},
"devDependencies": {
"@skypack/package-check": "^0.2.2",
"@types/babel__core": "^7.1.14",
"@types/node": "^15.12.5",
"@types/babel__core": "^7.1.15",
"@types/node": "^16.4.10",
"del": "^6.0.0",
"serve": "^12.0.0",
"typescript": "^4.3.4"
"typescript": "^4.3.5"
},

@@ -48,0 +48,0 @@ "scripts": {

@@ -0,0 +0,0 @@ # esbuild-plugin-solid

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