esbuild-plugin-solid
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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; |
{ | ||
"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 |
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
6250
83
Updated@babel/core@^7.14.8
Updatedbabel-preset-solid@^1.0.6
Updatedesbuild@^0.12.17
Updatedsolid-js@^1.0.7