@react-dev-inspector/babel-plugin
Advanced tools
Comparing version 2.0.0-beta.2 to 2.0.0-beta.3
@@ -1,2 +0,2 @@ | ||
import path from 'node:path'; | ||
import path from 'path'; | ||
import { parse, } from '@babel/parser'; | ||
@@ -3,0 +3,0 @@ import generate from '@babel/generator'; |
@@ -1,2 +0,2 @@ | ||
import { relative } from 'node:path'; | ||
import { relative } from 'path'; | ||
import { jsxAttribute, jsxIdentifier, stringLiteral, | ||
@@ -3,0 +3,0 @@ // @ts-expect-error import from deep path for reduce load files |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.transform = void 0; | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const path_1 = __importDefault(require("path")); | ||
const parser_1 = require("@babel/parser"); | ||
@@ -27,3 +27,3 @@ const generator_1 = __importDefault(require("@babel/generator")); | ||
*/ | ||
const relativePath = node_path_1.default.relative(rootPath, filePath); | ||
const relativePath = path_1.default.relative(rootPath, filePath); | ||
const isSkip = (0, visitor_1.pathMatch)(filePath, options === null || options === void 0 ? void 0 : options.excludes); | ||
@@ -30,0 +30,0 @@ if (isSkip) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.doJSXOpeningElement = exports.pathMatch = exports.createVisitor = void 0; | ||
const node_path_1 = require("node:path"); | ||
const path_1 = require("path"); | ||
const generated_1 = require("@babel/types/lib/builders/generated"); | ||
@@ -10,3 +10,3 @@ const createVisitor = ({ cwd = process.cwd(), excludes }) => { | ||
: () => false; | ||
const pathRelative = memo((filePath) => (0, node_path_1.relative)(cwd, filePath)); | ||
const pathRelative = memo((filePath) => (0, path_1.relative)(cwd, filePath)); | ||
const visitor = { | ||
@@ -13,0 +13,0 @@ JSXOpeningElement: { |
{ | ||
"name": "@react-dev-inspector/babel-plugin", | ||
"version": "2.0.0-beta.2", | ||
"version": "2.0.0-beta.3", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "description": "babel plugin for react-dev-inspector to generate source code position info into jsx properties", |
@@ -1,2 +0,2 @@ | ||
import path from 'node:path' | ||
import path from 'path' | ||
import { | ||
@@ -3,0 +3,0 @@ parse, |
@@ -1,2 +0,2 @@ | ||
import { relative } from 'node:path' | ||
import { relative } from 'path' | ||
import type { PluginPass } from '@babel/core' | ||
@@ -3,0 +3,0 @@ import type { |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
41387
46
0
4