🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

babel-plugin-injectcomponentcode

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-injectcomponentcode - npm Package Compare versions

Comparing version
2.0.0
to
2.0.1
+2
-2
lib/index.js

@@ -9,3 +9,3 @@ const pluginSyntaxJsx = require("@babel/plugin-syntax-jsx").default;

module.exports = async function ({ types, template }, options) {
const ignorePathList = Array.isArray(options.globIgnorePath) ? ['node_modules/**',, ...options.globIgnorePath] : options.globIgnorePath;
const ignorePathList = Array.isArray(options.globIgnorePath) ? ['node_modules/**', ...options.globIgnorePath] : options.globIgnorePath;
const globMachedFileList = await glob(options.globMatchPath , { ignore: ignorePathList})

@@ -89,3 +89,3 @@

});
oldExportNode.replaceWith(newNode);

@@ -92,0 +92,0 @@ }

{
"name": "babel-plugin-injectcomponentcode",
"version": "2.0.0",
"version": "2.0.1",
"description": "babel plugin react nextjs inject code",

@@ -5,0 +5,0 @@ "private": false,